Servo not respecting code

You were told in no uncertian terms in your other thread:-

That the pins NEED to be soldered to your board. With out doing this you are just wasting EVERY BODIES time.

Should be
if(counter == 1)
Along with all your other 'if' tests.

The code is doing exactly what you told it to do.

Before the count variable is ever printed it is incremented. So if you start with count = 0 then it will be equal to 1 before it is printed for the first time.
Quick fix make count = -1 when you declare it.