I'm not sure why you need to sync the Thompsons rate of fire with the ammo counter but there are easier methods.
You can always link the ammo counter directly to the electric motor via a relay like the Hyperdine Labs guys have done with their ammo counters, OR, you can install an IR Emitter and IR Sensor to detect the BB leaving barrel.
_________________
"Society had more rats when the rules were looser, just as the old wooden buildings had more rats than the concrete buildings that came later. But they still had rats. Now that society is all concrete and stainless steel there are fewer gaps between the joints, and it takes a smart rat to find them. A stainless steel rat is right at home in this environment."
