Measure frequency 350KHz

Hi, all. How can I measure the frequency of 350 kHz without the help of a libpruio? Only BBB without of other libraries.