oll-doc: count snippets in tree view

For each author/category/tag there is now a number indicating
how many items are below the node.

To be done: This whole counting etc. should be made more generic,
there is much redundant code now.