all_visits_by_country adapted to ActiveRecord count in city.rb