Correct answer is B : number of internal nodes,
At each time whenever we will pass the leaf node to the function , it will return 0 because
root->left == NULL and root->right == NULL then return 0.
So, at each internal node, 1 is added to the result of immediate child nodes which is 1 + return value of left subtree + return value of right subtree. But the leaf nodes are returning 0. So, contribution will only be from the internal nodes.
Hence, overall addition will be for all internal nodes and leaf nodes will not be counted.