# Count()

> Returns the current number of key-value pairs in this hash map.

## Definition

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

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

### Returns

| Type                                                       | Description                                             |
| ---------------------------------------------------------- | ------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The current number of key-value pairs in this hash map. |

### Remarks

Key-value pairs with matching keys are counted as separate, individual pairs.
