toMap

fun toMap(): Map<T, Int>

Returns a snapshot of the counts in first-insertion order.