DD measurements: added a separate pulse counter to calculate average time