Query\QueryBuilder::count_all_results

Retrieve the number of results for the generated query - used in place of the get() method