gfvalvo:
You need a type for the variable.As static:
static int number = 1;As global (above setup() function):
int number = 1;
Both work without an error, but still it's the same as before, the number doesn't change no matter how often I press the button. Any more advice?