The numbers you mention are defined by the number of bits.
The number is based on the 'Base 2' number system. In memory, you can only have 2 states - on or off. With one bit, you can only count to 1 - Zero or 1. With 2 bits, you can count 0-3. 4 bits, 0-15.
Each time you add a bit, the highest number doubles.
2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536.
Typical numbers in a PLC:
8 bits = 0-255
12 bits = 0-4095 (Analog cards are typically 12 bit)
16 bits = 65535. Usually split in a PLC as -32767 to +32767.
The CPU is 16 bit. Internally, they use 15 bits to count from 0-32767. The 16th bit is called the 'sign' bit.
For darrenj,
4 bits = Nibble
8 bits = Byte
16 bits = Word
32 bits = Double Word