merge doc_frame_count and frame_count_v