Any measure of the variety of organisms present in different ecosystems. This can refer to genetic variation, ecosystem variation or species variation (number of species) within an area, biome or planet.