No, there cannot be more carnivores than herbivores in an ecosystem.
Explanation;
-This is because there only could be more herbivores because they only eat plants and don't rely on other animals as their source.
There needs to be more primary producers (plants) then Primary consumers (herbivores) then secondary consumers (carnivores).
-Additionally; When herbivores eats, only a fraction of the energy becomes new body mass; the rest of the energy is lost as waste or used up by the herbivore itself to carry out its own life processes. Therefore, a carnivore has to eat many herbivores to get sufficient energy to survive and grow.
There cannot be more carnivores than herbivores because the carnivores eat the herbivores. If there wasn't enough herbivores to eat, then the carnivores would eventually become extinct.
Parasite: Parasites are different from predators because parasites only take resources from one host, whereas predators eat many prey. A good example of this is the trematode parasite Schistosoma mansoni. An adult schistosome parasite lives inside of just one human host