Sort of like an odometer

The type unsigned short is somewhat analogous to the odometer in your car (the thing that records how many miles the car has been driven).

For example, depending on the make and model of car, there is a specified set of values that can appear in the odometer.

The value that appears in the odometer depends on how many miles your car has been driven but not all possible values can appear in the odometer.