BCGControlBar Pro for MFC
int CBCGPRibbonCategory::GetPanelCount ( ) const

Returns the number of panels in category.