count method
count records.
Soon to be Deprecated: use query.count
instead.
@Deprecated('User query(filter: filter).count instead.')
Implementation
Future<int> count(DatabaseClient databaseClient, {Filter? filter}) {
final client = getClient(databaseClient);
// no transaction needed for read
return client
.getSembastStore(this)
.txnCount(client.sembastTransaction, filter);
}