The number of biological entities (species, genotypes, etc.) within a given sample. Sometimes used as synonym of species diversity.