Motor Encoder - Program an action for every loop

If you could mount magnets in or on the barrels you could make a six PPR encoder.  "Fire" each barrel when its magnet passes a Hall switch.  Mount the magnet on barrel '1' a few inches further along (out of range) than the others and add another Hall switch for a home position sensor.

YMMV