public static int getNodeNumLeafRec(TreeNode root){
        if(root == null){
            return 0;
        }else if(root.leftNode == null && root.rightNode == null){
            return 1;
        }
        return getNodeNumLeafRec(root.leftNode) + getNodeNumLeafRec(root.rightNode);
    }