"Farm Animals" Is a Collective Noun
A collective noun names a group of individuals. While "cow" refers to one animal, "farm animals" refers to a group.
Other examples include herd, flock, team, family, and class.
Let me know if you'd like more examples or want to explore other kinds of noun terms!