#B2109. Count Digit Characters

    ID: 11191 Type: Default 1000ms 256MiB

Count Digit Characters

Count Digit Characters

Given a single line of characters, count the number of digit characters in the line. Digit characters are defined as any of the characters 0-9.

For example, if the input is abc123! 45, the output should be 5 because there are five digits in the string.

Note: Use the appropriate functions or methods in your programming language to check for digit characters.

inputFormat

The input consists of a single line of characters.

outputFormat

Output a single integer representing the count of digit characters present in the input.

sample

abc123! 45
5