Motor Encoder - Program an action for every loop

if you reset your count correctly (!) each revolution, wouldn't you only need the following to determine when a barrel is at top

    if (! (cnt % 68))