Increment a tag from pulse counts

I’ve got a meter that counts from 1 to 10 then starts all over again; how can I use this pulse count to increment a tag? I am thinking of using a transaction group to increment a value each time I get a pulse. But is this the best way or can someone point me to a better solution. Appreciate any help.

This type of function is always best left for a PLC to do. PLCs have scan rates in the low mSecs, a PC cannot get to that time resolution without hardware help.

PLC can load a tag with pulse count, then SET a bit hen value is loaded. Ignition can trigger on the bit and reset the pulse count at end of transaction group.