Morgan Stanley interview question

Count all values in a binary tree using a recursive function.