code: def count_token_classification_labels(labels) -> Dict:
      """Count the number of labels of each kind in a token classification dataset.
  
      Ignores the initial character of these labels (B- and I- and such) if they exist.
      """
      labels = clean_iob_prefixes(labels)
      return dict(Counter(labels))
  
imports: from collections import Counter
  from typing import Dict, List
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: count_token_classification_labels(labels) and returns: dict