code: def exact_frame_count(input_path):
      """Returns the exact number of frames in the video.
  
      .. warning::
  
          This method uses the ``-count_frames`` argument of ``ffprobe``, which
          requires decoding the video and can be very slow.
  
      Args:
          input_path: the path to the video
  
      Returns:
          the number of frames in the video
      """
      opts = [
          "-count_frames",
          "-select_streams",
          "v:0",
          "-print_format",
          "json",
          "-show_streams",
      ]
      ffprobe = etav.FFprobe(opts=opts)
      output = json.loads(ffprobe.run(input_path).decode())
      return int(output["streams"][0]["nb_read_frames"])
  
imports: import itertools
  import json
  import logging
  import os
  import eta.core.frameutils
  import eta.core.image
  import eta.core.numutils
  import eta.core.utils
  import eta.core.video
  import fiftyone
  import fiftyone.core.metadata
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.core.validation
label_desc: Use image node_id 10 for calling a global function with example usage: exact_frame_count(input_path) and returns: int