Frequency/Pulse Measurement

Okay thanks for the replies, is it sensible that I should try doing this via the digital pins and attachinterrupt() rather than using the analog pins and analogread()?

if so, how do I use the attachinterrupt() for this case?

Thanks