Addition of numbers using button won't work

You need a type for the variable.

As static:

static int number = 1;

As global (above setup() function):

int number = 1;