The Loop action is used to iterate various items such as pages, the number of iterations being defined by the user. This number may be a variable, in which case the variable will be evaluated once only, before the first iteration.
A variable named
<MyLoopName>_counter is created within the loop containing the current iteration number. This value starts at 1, for the first iteration, and is incremented by 1 at each next iteration.