Word with immunity or mentality
I believe the answer is:
herd
(Other definitions for herd that I've seen before include "Group of cows, elephants etc" , "Collection of swine" , "Crowd of cattle" , "Group of animals, cattle, say" , "Large group of animals" .)