code: def pos(doclike: types.DocLike) -> dict[str, int]:
      """
      Count the number of times each coarsed-grained universal part-of-speech tag appears
      as a token annotation in ``doclike``.
  
      Args:
          doclike
  
      Returns:
          Mapping of universal part-of-speech tag to count of occurrence.
      """
      return dict(collections.Counter(tok.pos_ for tok in doclike))
  
imports: import collections
  import collections.abc
  from ..None import types
label_desc: Use image node_id 3 for calling a global function with example usage: pos(doclike) and returns: dict