Question d’entretien chez Surekha Technologies

Write down the function to count the individual digits from numbers in the given sequence.