Zero crossing and frequency measurement are not the same thing. Generally you zero cross detect to switch a load with the minimum glitch. For frequency measurement, I'd filter the signal before counting it. But of course a filter will shift the waveform, making it not useful for a zero crossing detector.