docs: def count_resources(domain, token):
      """
      Given the domain in question, generates counts for that domain of each of the different data types.
  
      Parameters
      ----------
      domain: str
          A Socrata data portal domain. "data.seattle.gov" or "data.cityofnewyork.us" for example.
      token: str
          A Socrata application token. Application tokens can be registered by going onto the Socrata portal in
          question, creating an account, logging in, going to developer tools, and spawning a token.
  
      Returns
      -------
      A dict with counts of the different endpoint types classifiable as published public datasets.
     """
      resources = get_resources(domain, token)
      return dict(Counter([r['resource']['type'] for r in resources if r['resource']['type'] != 'story']))