rename sample_count to frame_count