countBy method
Implementation
Future<int> countBy(Where where) async {
var query = Sqler()
..from(qName)
..addSelect(SQL.count(QField('id', as: 'count_records')))
..where(where);
var result = await table.execute(db, query);
return result.countRecords;
}