Problem Statement
Write an algorithm to count the total number of nodes in a binary tree.
procedure countNode(T) begin if (T = NULL) then return 0; else return 1 + countNode(LC(T)) + countNode(RC(T)); endif end procedure