There are many ways to write a Python program that computes a histogram.
By histogram, I mean a function that counts the occurrence of objects in an iterable>
iterable>
$d{$_} += 1 for split //, 'abracadabra';