Your code is likely only looking at questions directly tagged to the Parent, rather than looking through it to the Subcategories. The easiest fix is to make the Parent count a sum of its children. Instead...
View Questionclairehar557ris
15 Reputation