Data science

Better name for this method might be `size_of_group`. The word `total` implies your summing something. In a more abstract sense you are summing the number 1 for each data point, but the word `size` is easier to understand. You could also call it `group_size`.