The sum of m's counts over all rows.
m
int total(Map<String, int> m) => m.values.fold(0, (a, b) => a + b);