pulseIn() function problem for measure frequency

New to the forum here, but since one of the projects I want to get into is going to be based on reading input frequencies, I wanted to participate.

Couldn't he add:

duration = duration + pulseIn(pin, LOW);

Right after reading the pulseIn(pin, HIGH)? The first thing I noticed was he was only reading half of the wave and likely assuming it was a perfect 50% duty cycle.