Counting sheep