def count_resources(domain, token):
resources = get_resources(domain, token)<EOL>return dict(Counter([r['<STR_LIT>']['<STR_LIT:type>'] for r in resources if r['<STR_LIT>']['<STR_LIT:type>'] != '<STR_LIT>']))<EOL>
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.