Calculate article count for categories recursively--that is, the count includes not just articles tagged with that term, but also the count of all descendent terms.

The logic is complicated by the fact that the category hierarchy is not a tree.  Nodes can have multiple parents.