Input: green rocking lever driven by any motion source (violet cam and brown follower in this video).
Yellow pawl moves blue unit digit dial attached to blue ratchet wheel. Each stroke of the yellow pawl makes the blue dial turn 1/10 of a revolution.
Orange pawl is pivoted on the blue unit digit dial. A spring (not shown) forces the orange pawl to contact a small pin on the blue unit digit dial. So the orange pawl does not contact the grey ratchet wheel of the glass ten digit dial till the pawl contacts pink cam and makes the ten digit dial turn 1/10 of a revolution.
The video shows counting process from 08 to 28.
Measure for positioning the ratchets and digit dials is not shown.