How do I count topics in sub-categories?

The quickest way is likely to open the sub-category edit page and try to click delete. It will fail as there are topics, but the message will give you the number of topics. Alternatively, you could write a simple Data Explorer query.