Amdocs Interview Question

write a code for counting the occurrence of digits from a string.