Resampler.
count
Compute count of group, excluding missing values.
Count of values within each group.
See also
Series.groupby
DataFrame.groupby