Dogs view count fixed to account for nil values