Future<int> getPackagesCount() async { if (!_isInitialized) throw Exception('PackageStorage not initialized'); return _box!.length; }