hash map for counter