Something's odd with this question: each sheep has one head, so if you see 48 heads there are 48 sheeps.
But each sheep has also 4 legs, so if you have 48 sheeps you should see

So, unless you have some sheeps with missing legs, there must be a mistake in the question.