Question d’entretien chez Amdocs

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