# int Obj::CmdCount()

[Family: Obj](/imperivm/en/CKS/familias/obj/)

## Exact signature

```text
int Obj::CmdCount()
```

## Description

Returns the command count at object [field] when the resolved object is live, otherwise zero.

## Parameters and return type

**Return type:** `int`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

This signature takes no additional arguments.

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`int Obj::CmdCount(str)`](/imperivm/en/CKS/reference/api-df386f3ab8f15e/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-71b0f0b205e4f3.md)
- [JSON](/imperivm/CKS/api/entries/api-71b0f0b205e4f3?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
