countervariable
nounUK /ˈkaʊntəˌveəriəbl/
US /ˈkaʊntərˌveriəbl/
A countervariable is a number that keeps track of how many times something happens.
The program uses a countervariable to count how many times the loop runs.
RELATED WORDS
OTHER MEANINGS
2. A variable in a loop that is increased or decreased each time the loop repeats.
Set the countervariable to zero before the loop starts.
3. A number used to record the number of items or events counted so far.
The countervariable showed that twelve people had entered the room.
4. In statistics, a variable that counts occurrences rather than measuring an amount.
They treated the number of visits as a countervariable in the model.