code: def bincount(
      x: ivy.Array,
      /,
      *,
      weights: Optional[ivy.Array] = None,
      minlength: int = 0,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Count the number of occurrences of each value in an integer array.
  
      Parameters
      ----------
      self
          Input array.
      weights
          An optional input array.
      minlength
          A minimum number of bins for the output array.
  
      Returns
      -------
      ret
          The bincount of the array elements.
  
      Examples
      --------
      >>> a = ivy.Container([[10.0, ivy.nan, 4], [3, 2, 1]])
      >>> a.bincount(a)
          3.0
      >>> a.bincount(a, axis=0)
          array([6.5, 2. , 2.5])
      """
      return ivy.current_backend(x).bincount(
          x, weights=weights, minlength=minlength, out=out
      )
  
file_path: ivy/ivy/functional/ivy/experimental/statistical.py
imports: from typing import Optional, Union, Tuple, Sequence
  import ivy
  from ivy.func_wrapper import handle_array_function, handle_out_argument, to_native_arrays_and_back, handle_array_like_without_promotion, handle_nestable, infer_dtype, handle_device, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 9 for calling a global function with example usage: bincount() and returns: ivy