Use reduce to accumulate counts