Does "head" mean the same thing in these two sentences?

They shot 20 head of quail.

200 head of cattle and 50 head of horses.
the same meaning