added vc_count_frames_in_file function