What does counter += 1 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.