On determination of the number of signals