Pivot > Pivot Assembly Interfaces > IPivotTableHeader > IPivotTableHeader.ElementCount
ElementCount: Integer;
The ElementCount property returns the number of elements that a table header contains.
See also:
IPivotTableHeader