This question has options. Is the word "head" used in the same way in the following two sentences?

200 head of cattle.

This song keeps going through my head.

Options are: a). different meanings; b). the same meaning;
a).