Encoder

a rotary device used to transmit position information.  The encoder generates electrical pulses as it moves – which are fed into a high speed counter.