>>> dictB={"b":1,"c":2,"d":3}
>>> dict_temp={}
>>> for i in dictA:
dict_temp[i]=1
>>> for i in dictB:
>>> duplicate_word_count=len(dictA)+len(dictB)-len(dict_temp)
>>> duplicate_word_count
2
>>>