Pivot > Pivot Assembly Interfaces > IPivotSorterData > IPivotSorterData.Count
Count: Integer;
The Count property returns the number of columns or rows, according to which sorting in the table is set.
See also:
IPivotSorterData