In computer science, a loop counter is a variable that controls how many repetitions the loop will do. Usually, the loop counter variable is an integer value that increments by 1 for each completed loop. However, loop counters can also decrement, and can have step sizes other than 1. 