Factors affecting herbivore populations