fn build_count_query<'a>( table: &'a Table, q: &'a CountQuery, ) -> Result<QueryBuilder<'a, Postgres>, QueryError>