count

inline fun <T> Iterable<T>.count(from: Int = 0, to: Int = -1, predicate: (T) -> Boolean): Int
inline fun <T> List<T>.count(from: Int = 0, to: Int = size, predicate: (T) -> Boolean): Int
inline fun IntArray.count(from: Int = 0, to: Int = size, predicate: (Int) -> Boolean): Int
inline fun BooleanArray.count(from: Int = 0, to: Int = size, predicate: (Boolean) -> Boolean): Int