Driving Comp Air Engine with Solenoids and Arduino

Ahh. I had it before, and forgot it this time. I didn't really know what it did. You mean this?
Code

No.

You have this statement:

attachInterrupt(0, event_count, RISING);

It says "When the appropriate pin (pin 2) transitions to RISING, call event_count()".

So, what/where is event_count()?