Input: pink pinion that makes violet pin gear rotate continuously.
One revolution of the violet gear makes the next blue pin gear rotate interruptedly one tenth of a revolution thanks to two pins on the left side of the violet gear and the first orange gear of 8 teeth. Four teeth of the orange gear are longer than the remainings. In combination with the outside diameter of the violet gear they keep the orange gear and the blue gear immobile when the above mentioned two pins are not in mesh.
The same process is applied to the motion transmission between the bue and green gears.
The video shows how the odometer works when the violet gear rotates from the 07th to the 13th revolution.