code: def countWordOverlapFrequencies(filename="goodOverlapPairs.pkl"):
    
    with open(filename,"rb") as f:
      goodOverlapPairs = pickle.load(f)
  
    with open("word_bitmaps_40_bits_minimum.pkl","rb") as f:
      bitmaps = pickle.load(f)
  
    # Count how often each word has a highly overlapping match with other words
    wordFrequencies = {}
    for w1, w2, overlap in goodOverlapPairs:
      wordFrequencies[w1] = wordFrequencies.get(w1, 0) + 1
  
  
    printTemplate = PrettyTable(["Num High Overlaps", "Word", "On Bits"],
                                sortby="Num High Overlaps", reversesort=True)
  
    for word in wordFrequencies.iterkeys():
      printTemplate.add_row([wordFrequencies[word], word, len(bitmaps[word])])
  
    print printTemplate
docs: Count how many high overlaps each word has, and print it out