Hello and welcome to the forums,
There are two basic methods to measure frequency.
With one you measure how many pulses within a fixed timeframe.
The other is to measure the time between the pulses.
You may need to do both depending on the frequency range.
Which version you choose/need depends on several factors:
1. Expected frequency range of the sampled signal
2. Expected update time of the output
3. Sampling frequency of the measuring device
When counting pulses, you need to ensure you get enough pulses to prevent to much granularity at the lower end. If this time period is too long for your expected output update rate then you need to measure the time between the pulses. Here you have an issue with if the frequency goes to zero, how long do you wait for thet next pulse to come in? When the frequency gets to high you start to get granularity problems again.
So, before you can get a simple answer, we need some specs of what you are trying to do.