1 2 3 4 5

After the loop $step is 6.