# GetFieldSelectionCountAsync Method

## Overloads

| [GetFieldSelectionCountAsync(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.GetFieldSelectionCountAsync.htm#Qlik_Sense_Client_SelectionObserver_GetFieldSelectionCountAsync_System_String_) |  | Get the number of selected values of the specified field. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.GetFieldSelectionCountAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.GetFieldSelectionCountAsync.htm)

## GetFieldSelectionCountAsync(String)

Get the number of selected values of the specified field.

### Declaration

```

          public Task<int> GetFieldSelectionCountAsync(string fieldName)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | fieldName | The name of the field to check. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Int32&gt; | The number of selected values of the specified field. |

### Implements

[ISelectionObserver.GetFieldSelectionCountAsync(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ISelectionObserver.GetFieldSelectionCountAsync.htm#Qlik_Sense_Client_ISelectionObserver_GetFieldSelectionCountAsync_System_String_)