# MusicChartCollection (/zh-CN/api-reference/rtc/unreal-cpp/class-musicchartcollection) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```cpp class MusicChartCollection : public RefCountInterface { public: virtual int getCount() = 0; virtual MusicChartInfo* get(int index) = 0; protected: virtual ~MusicChartCollection() = default; }; ``` ## 方法 [#方法] 获取本次请求的音乐榜单数量,详见 [getCount [1/2]](/zh-CN/api-reference/rtc/unreal-cpp/api-musicchartcollection-getcount)。 获取音乐榜单的详细信息,详见 [get](/zh-CN/api-reference/rtc/unreal-cpp/play/drm#api_musicchartcollection_get)。