# GetSampleMetadataCount(int)

> Gets metadata count associated with the specific sample.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Profiling](/engine/6000.3/script-reference/unityeditor/profiling.md)
* **Assembly:** UnityEditor

```csharp
public int GetSampleMetadataCount(int sampleIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the Profiler sample.

### Returns

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