countByChannel

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

Return

the number of items in the channel that match the condition

Parameters

predicate

the condition to count by