Nokia Interview Question

write a pseudocode for counting leaves in binary tree rest were all aptitude question for me