Measurements of dead time and characterization of ion counting systems for mass spectrometry