# COMMAND COUNT

> Return the number of commands the server has.

URL: https://docs.hotkv.com/commands/command-count/

```
COMMAND COUNT
```

- Group: Server
- Complexity: O(1)
- HotKV Cloud: all plans
- On-Premise: no license needed

`COMMAND COUNT` returns how many top-level commands the server has, the
number of entries [COMMAND](https://docs.hotkv.com/commands/command/index.md) returns. Subcommands such as
`CONFIG GET` are not counted separately.

## Return value

An integer, in RESP2 and RESP3.

## Examples

```
127.0.0.1:6379> COMMAND COUNT
(integer) 466
```

The number you see depends on your build and license.

## Compatibility

Same as Redis 7 and Valkey 8. The count includes the commands HotKV adds.

## See also

[COMMAND](https://docs.hotkv.com/commands/command/index.md), [COMMAND LIST](https://docs.hotkv.com/commands/command-list/index.md)