add exercise to count no. of digits in a string