Updated the documentation of the counter variable to better reflect its purpose.