I know there are other threads here about counters and I used them as an inspiration to build my own: See below. It almost works but sometimes get's stuck at a number and no matter how often I repeat it, it always says at the same number until I update the counter in the comment of the file, then it continues for a random number and then it get's stuck again.
I had a look at this, and I had it fail a few times. It looks like the system is erroneously caching the comment, and not noticing the change from the Set Comment when it next runs the Get Comment.
I changed the single Set Comment action to this sequence:
And that seemed to resolve the issue - occasionally the next Get Comment would read one of the other Set Comment values (eg 5.00), but that was fine, it would still evaluate correctly.
I don't have any other suggestions I'm afraid, this looks like a caching issue in the system reading code for the comment.
Is there some reason you are storing the count in the comment?