Need Help with someone checking over my program and see if i have anything wrong

Do fix your layout - ctrl-T in the IDE. Makes the code much more readable.

One issue: you didn't make coinPulseCount volatile.

Then: does the program work? If so, you're done (well, except the volatile issue).
If not, where does it go wrong?
How do you know all pulses have been received? What if the user pushes a few coins into the machine in quick succession?