code: def count_frames_manual(video):
      # initialize the total number of frames read
      total = 0
  
      # loop over the frames of the video
      while True:
          # grab the current frame
          (grabbed, frame) = video.read()
  
          # check to see if we have reached the end of the
          # video
          if not grabbed:
              break
  
          # increment the total number of frames read
          total += 1
  
      # return the total number of frames in the video file
      return total
  
label_desc: Use image node_id 2 for calling a global function with example usage: count_frames_manual(video) and returns: total