in C++ you do that with a regular for-loop.
for(variable; condition; increment) {
//stuff goes here
}
In your for-loop:
variable is a counting variable like i. You can define the variable right here and initialize it. You often see something like "int i = 0"
condition is some sort of test. In your case you want to check if your counting variable is less than how many times you want the loop to execute. You'd put something like "i < how_many_times_to_loop"
increment is a command to increment the counting variable. In your case you want "i++" which is a short hand way of saying "i = i + 1"
So that gives us:
for(int i = 0; i < how_many_times_to_loop; i++) {
//stuff goes here
}