Have a look at this mechanical counter rig created by Environment Artist Aender Lara in Blender. The model was made using Blender's drivers, a tool to control values of properties by means of a function, you can also add more numbers to it.
A number of mechanical rig examples are available for free on Ko-fi. You can also find some great assets there.