Instrument for measuring frequency of radio waves