# OptionCount

> The number of options defined in the state.

## Definition

* **Type:** Property
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public int OptionCount { get; }
```

### Examples

```csharp
var optionCount = myState.OptionCount;
```
