Given the string:
a=\'dqdwqfwqfggqwq\'
How do I get the number of occurrences of each character?
lettercounts = {} for letter in a: lettercounts[letter] = lettercounts.get(letter,0)+1