Storage class getCount and clear implementation