'Returns the current count for the given key and path.'

def count(self, key, path='/'):

    with self.lock:
        p = ('/' + path.strip('/'))
        r = self.cache.get((key, p), [0])[0]
        return r
