Introduction
A counter-based while loop helps you repeat actions a set number of times by counting each step.
When you want to repeat a task exactly 5 times.
When you need to process items one by one and count how many you have done.
When you want to keep doing something until a number reaches a limit.
When you want to print numbers from 1 to 10.
When you want to ask a user for input 3 times.