In a habitat, herbivores are expected to outnumber carnivores. This is because carnivores depend upon herbivores for their food and get energy by consuming herbivores. Some energy is wasted during the transfer from herbivores to carnivores. Consequently, less energy exists at the level of a secondary consumer. This leads to a reduction in the number of carnivores compared to herbivores.