count

abstract fun count(): Long

Reads and caches the total number of entities this query operates on. This causes a database query with SELECT COUNT(*) and a query equivalent to the current query, minus ordering.

Return

the total number of entities this query operates on, cached.