Count the number of repeated characters in a given string

i have a string "dfasdfasdfadf"
i want to count the number of times each character is repeated..
For instance, d is repeated 4 times, f is repeated 4 times..

can u give a program in c

what have you tried.?