by converting frequency into a train of pulses, which are then counted