catmap and sortgroupcount

catmap should be an example of applicative programming, sortgroupcount
is about sortBy, groupBy, countBy