Functions for computing the branching factors of all nodes in a corpus with trees.