Attempt 2 to get counts

looks fine this time. But I am sure you can make it better!!