We found this circuit in documentation from the 1960s. The transistors are very old Germanium type, but they can be used in an equivalent modern configuration. The circuit is based on the pulses generated by a gear wheel when passing in front of an optical coupler.