Array bubble sort

What is the purpose of counter in bubble sort program?

it just signifies the number of passes we take on the complete array