#define Button 10
int sw, c = 0;

void setup()
{
  pinMode(Button, INPUT_PULLUP);
  Serial.begin(9600);
  Serial.println("Push button counter:");
}

void loop()
{
  sw = digitalRead(Button);
  if (sw == 0)
  {
    delay(250);
    c++;
    Serial.println(c);
  }
}