Hahahah; looks like the angel inside his head won & the price was just his sleep XD At least he managed to count +30.000 sheeps without losing count; quite amazing actually.
He counted 38974 sheep? Assuming he took around 3 seconds to count each sheep (probably way more as he went higher), it would have taken him 38974*3/60/60 = around 32.5 hours. Hm.