added groupsOf(), groupBy(), and countBy() collection methods