public static void count_digits(String s) {

        int count = 0;
        for (int i = 0; i < s.length(); i++) {
            char ch = s.charAt(i);
            if (ch >= '0' && ch <= '9') count++;
        }

        System.out.println(count);

    }