<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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