BCGControlBar Pro for MFC
int CBCGPRibbonPanel::GetCount ( ) const

Returns the number of elements in the ribbon panel.