# DefCountAsync Method

## Overloads

| [DefCountAsync()](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DefCountAsync.htm#Qlik_Engine_IGenericObject_DefCountAsync) |  | Retrieves the total number of HyperCube/ListObject definitions contained in this generic object asynchronously |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DefCountAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DefCountAsync.htm)

## DefCountAsync()

Retrieves the total number of HyperCube/ListObject definitions contained in this generic object asynchronously

### Declaration

```

          Task<int> DefCountAsync()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Int32&gt; | Task that will resolve the number of HyperCube/ListObject definitions |