use the new counters api exposed by libshardcache

and conform to the last changes in the hashtable api