1132: 数字字符统计
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int T=cin.nextInt();while(T-->0){
String str=cin.next();int ans=0;for(int i=0;i<str.length();i++)if(str.charAt(i)>='0'&&str.charAt(i)<='9')ans++;System.out.println(ans);}}
}