Group size aggregation
Returns the number of rows in the current aggregation context. Use this inside summarize() to count rows per group.
summarize()
The row count.
df |> group_by($species) |> summarize($rows = n())
count, summarize