# GetSharedComponentCount()

> Gets the number of shared components managed by this EntityManager.

## Definition

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

```csharp
[ExcludeFromBurstCompatTesting("Accesses managed component store")]
public int GetSharedComponentCount()
```

### Returns

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