My Keypad Door Lock.

in relation with my previous question above.

My objective: pressing pushSwitch (3 times) will make redLed turn on.

Can't figure it out.

int redLed = 3;
int pushSwitch = 2;

void setup()

{
  
  pinMode(redLed, OUTPUT);
  pinMode(pushSwitch, INPUT);
}

int i;

void loop()
{

for (i =0; i < 4; i+1);

if (i ==3)
{
  digitalWrite(redLed, HIGH);
}

}