In Configuration-Themes there is the feature: Show empty Categories
If set to No this does not show any subcategory folders that may present, that is it only looks for files and does not test for any subcategories that may have files. Not sure if this is a bug or a wish .
It will not display the number of documents if it is saved within the subcategories, it will only display the number of documents within the immediate category.