count

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

Returns the number of elements in this collection.


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

Returns the number of elements matching the given predicate.