pub fn count_matching<E: Entity>(
dialect: Dialect,
criteria: &Criteria,
) -> PreparedExpand description
SELECT COUNT(*) AS cnt under a Criteria’s filters and joins only.
Ordering and paging are dropped: counting a page’s rows with the page’s own
LIMIT applied would always report the page size.