The countBy example was using the groupBy method