{
  "schema_version": 2,
  "id": "commands/command-count",
  "title": "COMMAND COUNT",
  "url": "https://redis.io/docs/latest/commands/command-count/",
  "summary": "Returns a count of commands.",
  "since": "2.8.13",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:48:09+01:00",
  "page_type": "content",
  "content_hash": "297a36ec4ca981e6cd1f108af92aa18dc08bf504c2b707904f687408e44f1178",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Returns [Integer reply](https://redis.io/docs/latest/develop/reference/protocol-spec#integers) of number of total commands in this Redis server."
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "redis> COMMAND COUNT\n(integer) 447"
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Supported\">&#x2705; Standard</span><br /><span title=\"Supported\"><nobr>&#x2705; Active-Active</nobr></span> | <span title=\"Supported\">&#x2705; Standard</span><br /><span title=\"Supported\"><nobr>&#x2705; Active-Active</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n[Integer reply](../../develop/reference/protocol-spec#integers): the number of commands returned by `COMMAND`.\n\n**RESP3:**\n\n[Integer reply](../../develop/reference/protocol-spec#integers): the number of commands returned by `COMMAND`."
    }
  ],
  "examples": []
}
