Counting Sheep solutions

Counting Sheep was solved using C by 1066 contestants. Solution sizes: average 987 bytes (shortest: 343; longest: 5276).

The list below is sorted by ranking. You can also sort by solution size.