# GetChildrenCount(in HierarchyNode)

> Gets the number of child nodes that a hierarchy node has.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.7/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyCoreModule

## GetChildrenCount(HierarchyNode)

```csharp
public int GetChildrenCount(in HierarchyNode node)
```

### Parameters

**** (\[HierarchyNode]\(/engine/6000.7/script-reference/unity/hierarchy/hierarchynode)): The hierarchy node.

### Returns

| Type                                                       | Description             |
| ---------------------------------------------------------- | ----------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of children. |
