Problem Description

Read t lines. For each line, count how many characters are digits (0-9) and output the count.

Input Format

First line t. Next t lines are strings.

Output Format

t lines counts.

Sample Test Case

Input:
3 ab12 9x9x no digits
Output:
2 2 0

Constraints

Total characters over all lines

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next