import java.util.*;
public class Test02 {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);

	      String  info=scan.next();  
	      
	      int index=0;

	      int count=0;

	      while(index <info.length()) {

	         if(info.charAt(index)>='0'&&info.charAt(index)<='9')
	        	 //charAt() 方法用于返回指定索引处的字符。索引范围为从 0 到 length() - 1

	        	 count++;

	         index++;

	      }

	      System.out.println("数字个数="+count);
	}

}