For example, when counting a group of people, you may take a "head count" wherein the head is used to refer to the entire individual. I used to think the word was eponym
for some reason, but after looking at the definition
a person after whom a discovery, invention, place, etc., is named or thought to be named. a name or noun formed after a person.
that does not seem to be the correct word.