The countBy example was using the groupBy method
Merge pull request #1031 from mrcodex/patch-1

The countBy example was using the groupBy method