Count records matching the given finder.
finder
Future<int> countWithFinder(Finder finder) async { return _collection.query(finder: finder).count(_database); }