code: def count(y_true, y_pred) -> int:
      r"""Calculate the number of data points in each group when working with `MetricFrame`.
  
      The ``y_true`` argument is used to make this calculation. For consistency with
      other metric functions, the ``y_pred`` argument is required, but ignored.
  
      Read more in the :ref:`User Guide <assessment>`.
  
      Parameters
      ----------
      y_true : array_like
          The list of true labels
  
      y_pred : array_like
          The predicted labels (ignored)
  
      Returns
      -------
      int
          The number of data points in each group.
      """
      check_consistent_length(y_true, y_pred)
      return len(y_true)
  
file_path: fairlearn/fairlearn/metrics/_base_metrics.py
imports: import numpy
  import sklearn.metrics
  from typing import Any
  from ._metric_frame import check_consistent_length
  from fairlearn.utils._input_manipulations import _convert_to_ndarray_and_squeeze
label_desc: Use image node_id 6 for calling a global function with example usage: count(y_true, y_pred) and returns: len