# int Obj::CmdCount()

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

## Exact signature

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

## Description

Returns the number of commands in the object's queue. Returns zero if the reference cannot be resolved or the object is considered destroyed.

## Usage notes

This overload reads the command count without filtering by name. CmdCount(str) is a distinct overload. Zero can also come from an invalid reference or a destroyed object, so it is not sufficient by itself to test object validity. How every special command, such as idle, contributes to the count is not established here.

## 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)`](/en/CKS/reference/api-df386f3ab8f15e/)

## Read and share

- [Markdown](/exports/en/cks/api-71b0f0b205e4f3.md)
- [JSON](/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.
