frequency meter

Yes. Use one of the libraries like the one you found or : GitHub - PaulStoffregen/FreqCount: Measures the frequency of a signal by counting the number of pulses during a fixed time. and look at the examples.

The pulseIn() based frequency counters will not work above about 50kHz.

Are you sampling the result every 5mS ?