def get(self, key): try: cache_key = COUNTER_CACHE_KEY % key return Count.len(cache_key) except : return 0