code: def count(a, axis=None, keepdims=False, split_every=None):
      return reduction(
          a,
          _chunk_count,
          chunk.sum,
          axis=axis,
          keepdims=keepdims,
          dtype=np.intp,
          split_every=split_every,
          out=None,
      )
  
imports: from __future__ import annotations
  from functools import wraps
  import numpy
  from dask.array import chunk
  from dask.array.core import asanyarray, blockwise, elemwise, map_blocks
  from dask.array.reductions import reduction
  from dask.array.routines import _average
  from dask.array.routines import nonzero
  from dask.base import normalize_token
  from dask.utils import derived_from
label_desc: Use image node_id 19 for calling a global function with example usage: count(a, axis, keepdims, split_every) and returns: reduction