Refactor get total grasses and rabbits