Add `get_rate` with `get_frame_count` and improve