Pregunta de entrevista de Amdocs

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