What does counter++ do?

It increases counter by one each time the loop runs its code blockIt creates the counter variable

It increases counter by one each time the loop runs its code block.