Estimation of the Number of Spectral Lines