Domanda di colloquio di Amdocs

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