...

Code

int ledPin1 = 9;
int ledPin2 = 5;
int btnPin = 2;
int counter = 0;
int btnPress = 0;
int prevBtnCount = 0;

void setup(){
  Serial.begin(9600);
  pinMode (9, OUTPUT);
  pinMode (5, OUTPUT);
  pinMode (2, INPUT);
}

void loop(){
  btnPress = digitalRead (2);

  if (btnPress != prevBtnCount){
    if (btnPress == HIGH){
      //!! btnPress equals to ... TRUE statement
    counter++;
    if (counter > 3){
      counter = 0;
    }
  }
}
prevBtnCount = btnPress;

switch (counter){
  case 0: 
  digitalWrite(9, LOW);
  digitalWrite(5, LOW);
  break;

  case 1:
  digitalWrite(9, HIGH);
  digitalWrite(5, LOW);
  break;

  case 2:
  digitalWrite(9, HIGH);
  digitalWrite(5, HIGH);
  break;

  case 3:
  digitalWrite(9, LOW);
  digitalWrite(5, HIGH);
  break;
}
delay(5);
}