toCounter

fun <T> Map<T, Int>.toCounter(): Counter<T>