frequency counter? but...

but, has anyone seen any code to measure frequency? i'll adapt it if so

There is a FrequencyCounter library. Google will be hearing from you soon, I'll bet.