Frequency/Pulse Measurement

The pseudocode of dhenry works when there is wind and the anemometer generate pulses. If there is little or worse no wind his pseudocode will block.

Read - http://arduino.cc/en/Reference/AttachInterrupt - and replace blink() with count()