for k in sorted(counts):
    print('Frequency of {} = {}/{}'.format(k, counts[k], len(c)))
print()
How to retrieve frequencies of the number of unique occurrences of pair letters for every possible pair of columns from a numpy matrix in python