kmongo / kotlin.collections / com.mongodb.client.MongoIterable / count

count

fun <T> MongoIterable<T>.count(): Int (source)

Returns the number of elements in this collection.

inline fun <T> MongoIterable<T>.count(crossinline predicate: (T) -> Boolean): Int (source)

Returns the number of elements matching the given predicate.