int count(binNode *root){int leaf = 0;if (! root){if (! root->lchild && ! root->rchild)leaf ++;leaf += count(root->lchild);leaf += count(root->rchild);}return leaf;}