BCGControlBar Pro for MFC
int CBCGPMultiLinkCtrl::GetLinksCount ( ) const

Returns a number of the links.