int count({Map<String, dynamic>? filter}) { return _db.dbContent(_name).where((e) => _applyFilter(e, filter)).length; }