The number of species within a given sample, community, or area.