The Allen Bradley Micrologix High Speed Counter gives you the accumulated number of pulses or encoder position but many times you need to know the speed or how fast the position is changing.

Using a sample rate time and some math, we can calculate the rate.