BCGControlBar Pro for MFC
int CBCGPGanttChart::GetItemCount ( ) const

Returns a number of items in the Gantt.