IHierarchy::GetNumStackChildren

Queries the trait stack and calls GetNumChildren for each trait, accumulating the result.