Loop Count

What exactly is this code suppose to do?