How can I count an event?

Some questions/observations
How is the LED wired ?
Which pin(s) does the serial connection use on the Arduino that you are using (pin 0 by any chance ?)
The ledpin will only go HIGH when countnumber is exactly zero. How often will that happen ?