# DefCount Method

## Overloads

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

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

## DefCount()

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

### Declaration

```

          int DefCount()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Int32 | number of HyperCube/ListObject definitions |