You should...
A) Reverse the order of your if statements or B) Use a switch statement for the count instead (Better way)
You are basically calling all the if statements, because you aren't breaking out of whatever loop you have when count is incremented.