# GetOutputCountByType<T>()

> Get the number of PlayableOutput of the requested type in the graph.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Playables](/engine/6000.0/script-reference/unityengine/playables.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int GetOutputCountByType<T>() where T : struct, IPlayableOutput
```

### Returns

| Type                                                       | Description                                                                                                                                |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of [PlayableOutput](/engine/6000.0/script-reference/unityengine/playables/playableoutput.md) of the same type `T` in the graph. |
