add count function to cc_hashmap_t