Move your ctrl++ to the end of the for loop, inside the for loops closing bracket. that way on the first run through, ctrl will equal zero.

You also have an if block that would defeat the purpose...