code: def _count_types(sequence: Sequence[Any]) -> Dict[Type, int]:
      counter = collections.defaultdict(int)
      for it in sequence:
          counter[type(it)] += 1
      return counter
  
imports: import collections
  from typing import TYPE_CHECKING, Any, Dict, List, NamedTuple, Optional, Sequence, Set, Tuple, Type, cast
  import numpy
  import pandas
  from deepchecks.core.errors import DeepchecksValueError, ValidationError
  from deepchecks.nlp.task_type import TaskType, TTextLabel
  from deepchecks.utils.logger import get_logger
  from deepchecks.utils.metrics import is_label_none
  from deepchecks.utils.type_inference import infer_categorical_features, infer_numerical_features
  from deepchecks.utils.validation import is_sequence_not_str
label_desc: Use image node_id 11 for calling a global function with example usage: _count_types(sequence) and returns: counter