Measurement of the particle number density in a pulsed flow gas cell with a second-harmonic interferometer