counts()
Generates a data frame with two columns, one that has a row for each group key and another for the number of rows in the group.
Declaration
func counts() -> DataFrameDiscussion
The name of the data frame’s column that stores the number of rows in each group is count.