Example: Counting Paths in a Tree