Source: Discovery Education
A food chain shows how each living thing gets its food. Some animals eat plants and some animals eat other animals. For example, a simple food chain links the trees & shrubs, the giraffes (that eat trees & shrubs), and the lions (that eat the giraffes). Each link in this chain is food for the next link. A food chain always starts with plant life and ends with an animal.
Source: Discovery Education
Do you know why there are more herbivores than carnivores?
In a food chain, energy is passed from one link to another. When a herbivore eats, only a fraction of the energy (that it gets from the plant food) becomes new body mass; the rest of the energy is lost as waste or used up by the herbivore to carry out its life processes (e.g., movement, digestion, reproduction). Therefore, when the herbivore is eaten by a carnivore, it passes only a small amount of total energy (that it has received) to the carnivore. Of the energy transferred from the herbivore to the carnivore, some energy will be "wasted" or "used up" by the carnivore. The carnivore then has to eat many herbivores to get enough energy to grow.
Because of the large amount of energy that is lost at each link, the amount of energy that is transferred gets lesser and lesser ...
The further along the food chain you go, the less food (and hence energy) remains available.
The energy pyramid below shows many shrubs & grass providing food and energy to zebras. Note that as we go up, there are fewer zebras than shrubs & grass and even fewer lions than zebras ... as we go further along a food chain, there are fewer and fewer consumers. In other words, a large mass of living things at the base is required to support a few at the top ... many herbivores are needed to support a few carnivores.