count

inline fun <T> count(noinline block: Database.Query.() -> List<Database.Query.Clause> = { emptyList() }): Int
fun count(clazz: KClass<*>, block: Database.Query.() -> List<Database.Query.Clause> = { emptyList() }): Int

Counts the entries matching the specified criteria.