Add a macro which gives the number nodes in a category or locale.

@NODE_COUNT [[Category Pubs]] will return the number nodes in the Pubs category.
This fixes #20