[storage] Added clear and getCount methods to Storage class.