int count = 0;void countSingleChild(Btree *T){if(T){if((T->left == NULL && T->right != NULL)||(T->left != NULL && T->right == NULL))count++;countSingleChild(T->left);countSingleChild(T->right);}}