Measurement Frequency by arduino Due

I take my signal from signal generator and this signal is given to analog pin, and I want to measure the frequency's signal by board. It's not strange Paul!