When filtering category, take parent into count.