There is no one circuit that will do the job optimally for all possible frequencies. In every application there is a trade off between accuracy and measurement time. Frequency measurements are more accurate if they are averaged over many cycles. But if you average over too many cycles, it takes too long to make a measurement. For slower frequencies, it is often better to measure the period of one or more cycles and use that measurement to imply the frequency, as in bicycle speedometers. For higher frequencies it is more practical to count cycles over a fixed period of time. For optimal measurements you need to know the range of frequencies that must be measured and the requirements for resolution and response time. Based on these factors, very different optimal designs can result.