impl Solution {
    pub fn count_even(num: i32) -> i32 {
        let mut tmp: i32 = num;
        let mut check: i32 = 0;
        while (tmp > 0) {
            check += tmp % 10;
            tmp /= 10;
        }