Distinct degrees and their distribution in complex networks