docs: def weld_count(array):
      """Returns the length of the array.
  
      Parameters
      ----------
      array : numpy.ndarray or WeldObject
          Input array.
  
      Returns
      -------
      WeldObject
          Representation of this computation.
  
      """
      obj_id, weld_obj = create_weld_object(array)
  
      weld_template = _weld_count_code
  
      weld_obj.weld_code = weld_template.format(array=obj_id)
  
      return weld_obj