View total topics per category/sub category

This sounds like a job for CLI (ActiveRecord) or the data explorer plugin. (SQL)

https://github.com/discourse/discourse-data-explorer

Are you any good and putting together queries?