GroupBy.
size
Compute group sizes.
Number of rows in each group.
See also
Series.groupby
DataFrame.groupby