Solution
Based on looking deeper into the circuit, we noticed that frequency counting happens in the following way:
The main frequency counting happens in the FPGA, before the FPGA, the sinus signal transforms to the pulses and then in the FPGA implemented counter and based on it making the frequency counting.