How can I count an event?

XOIIO:
I'm working on getting the serial thing to work, I keep getting "Serial" was not defined in this scope.

Use this core...
http://code.google.com/p/arduino-tiny/
...and a TTL-serial-to-USB converter.

Even better, use this version of the ArduinoISP sketch...

...with this library...