How to display data every 10 seconds?

Actually, I misstated the subject. My mistake.

Every second the number of pulses will be different - depending on the speed of the encoder.