@override Future<int> count<T>() async { try { _ensureStoreInitialized(); final box = _store!.box<T>(); return box.count(); } catch (e) { throw DatabaseBridgeException(error: e); } }