For low-frequency radiation, it's quite simple: there's some electronic circuit that works (simple case) analogous to a tuning fork, but instead of building up mechanical tension it charges a capacitor and instead of the inertia in the fork's arms it has a magnetic field in a solenoid. You can measure the voltage against time, count the oscillations in one second, and know your frequency in Hertz.
For visible light, this explanation doesn't quite work anymore, but still it's kind of sort of vibrations – on an atomic scale! These systems must be described in quantum states, and there's this thing that if a state has energy $E$ then you can assign it a frequency $\nu = E/h$, where $h$ is the Planck constant. This frequency can't be observed directly, but what you can observe is, for a quantum superposition of two states with different energy $E_1, E_2$, that the system kind of "wiggles" with a frequency $\Delta\nu = \tfrac{E_1 - E_2}{h}$. And that wiggling frequency is the frequency of light emmited by a transistion from state 1 to state 2.
(Of course this explanation does not quite reflect how quantum mechanics works, just a very rough picture.)