Meaning: This sentence describes someone trying to fall asleep by counting sheep.
Choice of Words: Counting sheep is a common technique used to help people fall asleep. Drifting off means gradually falling asleep. The sentence suggests that the person is trying to fall asleep by counting sheep.