[SOLVED] How to read a pulse

It would be fairly easy.

In your isr, you update a static variable that keeps count of the pulses. You can then raise a flag upon each update to signal to a function running in loop to send the updated count variable.