Help to solve a problem

Help me to solve the task. Create function which consider letter in word.
Example:
func(Eduard)

return

E: 1,
a: 1,
d: 2,
r: 1,
u: 1