I'm looking at this and wondering if there is a $6 parameter that I can use to see what the category name is. This would be particularly useful in parsing what the size of the category page is when the category is empty to see if it is using a "Maint cat" style template.
Topic on Manual talk:Interface/Categorytree-member-num
Appearance