Couting parts with a sensor

the boxes or parts are coming really fast, sometimes at 200 parts per minute.
I never used block transaction group, not sure if it will work.
I will try this and post if it worked for me.