countBy

fun countBy(predicate: (T) -> Boolean): Int(source)
fun countBy(predicate: Predicate<T>): Int(source)

Parameters

predicate

the predicate to count by