code: def labeled_size(labeled):
      """
      sizes = labeled_size(labeled)
  
      Equivalent to::
  
          for i in range(...):
              sizes[i] = np.sum(labeled == i)
  
      but, naturally, much faster.
  
      Parameters
      ----------
      labeled : int ndarray
  
      Returns
      -------
      sizes : 1-d ndarray of int
  
      See Also
      --------
      mahotas.fullhistogram : function
          almost same function by another name (the only difference is that that
          function only accepts unsigned integer types).
      """
      from .histogram import fullhistogram
  
      return fullhistogram(labeled.astype(np.uint32, copy=False))
  
imports: from __future__ import division
  import numpy
  from .morph import get_structuring_elem
  from .None import _labeled
  from .internal import _get_output
  from ._filters import _checked_mode2int
  import mahotas
label_desc: Use image node_id 15 for calling a global function with example usage: labeled_size(labeled) and returns: fullhistogram