Well, I found a way, instead of adding 1 to the variable, I used "++", but it turned out it adds 1 whenver the button is held, which means it adds like 100 in half a second,
No surprise there.
As I said in reply #2
Unless you want the number to increase rapidly when you get the program working you will need to detect when the button becomes pressed rather than when it is pressed. See the StateChangeDetection eaxmple in the IDE.