The oval gears are each equipped with a pair of magnets which transmit the counted pulses to transposed Reed switches on the evaluation electronic.
eBay