In order to have proper statistics we need to return the number of lost pulses from the receiver. We cannot just count the gap in pulse_id as the beam might be operated at different frequencies.