Changing the condition tells the loop when to stop. For example, changing the condition to counter < 10.

Make sure to pick 10.