Arduino frequency counter

I'd suggest this one.
http://www.pjrc.com/teensy/td_libs_FreqCount.html