Well, frogs are scientifically nocturnal, therefore leading them to eat the worms, and worms don't eat frogs, so realistically frogs should have more population than worms because they don't get eaten by as many predators no matter what ecosystem they or you or them or him or she or it or anything!