Non-loop programming problem

where do I put the programme?

Is this a trick question? It goes on the PC, which will then compile and link it, and upload it to the Arduino.

int count = 0;
void loop()
{
   if(count < 3)
   {
      // Do something
   }
   else
   {
      // Do something else
   }
   if(count < 4)
      count++;  
}