Loop certain number of times then do action

I actually ran the code.