Counting dogs