It makes very little difference now that you've managed a method that works, but there is a pretty good read on measuring frequency with Pulsin here: http://batdetector.freevar.com/ArduBat/PulseIn.html (notice the misspelling).