button pushes count

So, I wanna to count the button pushes, and program Arduino that it will do something, when I push, for example, 4 times. I have motor shield and I wanna make button as remote control, but the problem is, I don't know how to program.
I wanna make, when I press one button 1 time, right wheel will go forward, and when I press 2nd time, it will stop. But when I will press 3rd time, wheel will go backwards. That's w/ left wheel too. But I don't know how to program. Please help :(((

So, I wanna to count the button pushes

So, go ahead.

But I don't know how to program.

I get $100/hour to do your homework for you.

I get $100/hour to do your homework for you

NO NO NO NO! XD can anyone say, how to do it? Please

can anyone say, how to do it? Please

Sure, but it involves programming.

Look at the state change detection example. Learn how to detect that a switch has BECOME pressed. When that happens, increment a counter.

Independent of diddling with the switch, do something based on the value in the counter.

Here is a crude example if a LCD menu that will get you started:

// Button_Menu 09 June 2013 JDS
// For Switch with pull down reststor
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 4); // set the LCD address to 0x27 for a 20 chars and 4 line display
byte count = 1;
byte x = 0;
byte xx = 0;
byte key = 10; //key pin
byte led = 6; //red and green leds
long int Timer;

void setup() {
  pinMode(led, OUTPUT);
  lcd.init();                      // initialize the lcd
  delay(100);
  lcd.display();
  lcd.clear();
  lcd.home();
  lcd.noCursor();
  lcd.noAutoscroll();
  lcd.backlight();
  delay(100);
  lcd.setCursor(2, 0);
  lcd.print("Button Menu");
  //Serial.begin(9600);
}

void loop() {
  lcd.setCursor(0, 1);
  if (count == 1)
  {lcd.print(count); lcd.print("  First Selection  ");}
  if (count == 2)
  {lcd.print(count); lcd.print("  Second Selection  ");}
  if (count == 3)
  {lcd.print(count); lcd.print("  Third Selection  ");}
  if (count == 4)
  {lcd.print(count); lcd.print("  Forth Selection  ");}
  x = digitalRead(key);
  if (x == 0)
  {
    xx = 0;
    digitalWrite(led, x);
  }
  if (x == 1)
  { Timer = 50000;
    while (Timer > 0)
    {
      Timer--;
    }
    x = digitalRead(key);
    if (x == 1)
    { if (xx == 0)
      { count++;
      if (count > 4)
      {count = 1;}
        digitalWrite(led, x);
        xx = 1;
      }
    }
  }
}