newCounter

fun newCounter(threadSafe: Boolean = false): Counter

Returns a new counter. The returned counter is not thread-safe.