Count the nodes

Write count(root) that returns how many nodes a binary tree has. An empty tree has 0.

count([8, 3, 10, 1, 6, None, 14])  ->  6
count(None)                        ->  0

The point is to practise the basic tree recursion.

def count(root):
    ...