# NumSharedComponents()

> The number of shared components in the archetype associated with this chunk.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public readonly int NumSharedComponents()
```

### Returns

| Type                                                       | Description                 |
| ---------------------------------------------------------- | --------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The shared component count. |
