# GetSharedValueIndexCountArray()

> Array of number of occurrences of all shared values. For example, given source array: [A,A,A,B,B,C,C,A,B] shared values are: [A,B,C] Shared value counts: [4,3,2] (number of occurrences of a shared value)

## Definition

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

```csharp
public NativeArray<int> GetSharedValueIndexCountArray()
```

### Returns

| Type                                                                                   | Description                                                                                    |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [NativeArray\<int>](/engine/7000.0/script-reference/unity/collections/nativearray1.md) | Count NativeArray where each element refers to the number of occurrences of each shared value. |
