# GetPersistentEventCount()

> Get the number of registered persistent listeners.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Events](/engine/6000.7/script-reference/unityengine/events.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int GetPersistentEventCount()
```

### Returns

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