add count operation to hashmap and strmap