Here's an improved version of that shortcode. You can call it with a name and a start attribute. The problem I had was that I was iterating over multiple views that had the [counter] and the numbers would just continue to increase.
The below will keep track of separate named counters.
You can set the start of the counter to be an arbitrary number. The default is 1.