tid] = $term->c; } } return $count[$type][$tid] + $children_count; }