count method
Implementation
Future<int> count([selector]) async {
if (db._masterConnectionVerified.serverCapabilities.supportsOpMsg) {
var result = await modernCount(
selector: selector is SelectorBuilder ? selector : null,
filter: selector is Map<String, dynamic> ? selector : null);
return result.count;
}
return legacyCount(selector);
}