Add a Command with the Loop Value

I have a macro that I execute in a loop occasionally, but every time I run the macro, I have to click “Play loop” then enter a value and finally click “Play” in order to be able to run the macro.
My question is:
Is there a command that I can add to the macro itself so that when I double-click the macro, it runs in a loop with a predetermined value?

you can add a times command, for example
times | 4
and put it in the first line of your macro. Then in the last line, put an end command.