Given the string:
a=\'dqdwqfwqfggqwq\'
How do I get the number of occurrences of each character?
(For future reference)
This performance comparison of various approaches might be of interest.