Measuring mechanical rotational speed in different ways?

The face of the gear that the cable slides into is flat.

Can you provide a drawing or photograph of the mechanical arrangement. I don't understand about the cable sliding into the gear.

What access to you have to the gear? Can you take speed of the main driven chain or belt?