make get_num_frames public