It took me a second to understand how this would work, so here’s a minimal example and one using an array. The Body flow output will execute the nodes downstream X times, the index output will update on each loop, and the exit flow output will execute once when complete.
There was an issue for a moment where for loops were broken and I had to use a while loop and manually increment the index. Here is that node graph in case it’s ever handy for manual control.
(thanks to @cubedparadox for the suggestion)