Combining Servo + LDR, a Button, and a Potentiometer

I can't figure out how to count like you said.

count++;

int prevState = LOW;
int currState;
byte count = 0;

void loop()
{
   currState = digitalRead(switchPin); // I really doubt that you have a button attached to the pin
   if(currState != prevState)
   {
      if(currState == HIGH)
         count++;
   }
   prevState = currState;

   if(count >= 2)
     count = 0;

   if(count == 0)
   {
      // Do thing 1
   }
   else
   {
      // Do thing 2
   }
}