一头 has three distinct uses: (1) as an adverb meaning 'headfirst' (
一头扎进去), (2) as 'one end' (
绳子一头), and (3) as a measure word for large animals (
一头牛, one cow). As a measure word, it's specifically for large livestock — cattle, pigs, elephants — never for small animals.