Compensation for the variation of total number density to improve signal repeatability for laser-induced breakdown spectroscopy.