Counting the Number of keywords in a dictionary in python,len(set(open(yourdictfile).read().split()))