You can use the field CategoryCount
to get the number of documents assigned to that category. This is just a counter and does not take into consideration where you are in the content tree. Meaning, you have 10 pages assigned to category "Money". 6 of those pages are under /Loans and 4 of the pages are under /Open-An-Account, it will display all 10 of them. If you want to filter the CategoryCount
based on where you are in the content tree, you'll have to do a custom query for that.
Simply using/displaying the CategoryCount
field should work in most cases though.