Measurement of the densities of plasma and ambient gas particles using a short direct current discharge