trivial count-min sketch implementation