# Count()

> Returns the current number of values in this set.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public int Count()
```

### Returns

| Type                                                       | Description                               |
| ---------------------------------------------------------- | ----------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The current number of values in this set. |
