Strange but usual thing, a few days of unsuccesful trying, posting the question in forum and the solution found after another few minutes

I can set a macro before the loop and then re-generate it inside each loop using "Generate macro" operator and putting %{macro_name}+1 as the macro value.
Anyway I find it strange if there was no more straightforward way..