countMap

fun <T> List<T>.countMap(): Map<T, Int>