content/commands/topk.count.md
Returns counts for each item present in the sketch. Multiple items can be requested at once. Please note this number will never be higher than the real count and will likely be lower.
This command has been deprecated. The count value is not a representative of the number of appearances of an item.
redis> TOPK.COUNT topk foo 42 nonexist
1) (integer) 3
2) (integer) 1
3) (integer) 0
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |
{{< multitabs id="topk-count-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
0 is returned.-tab-sep-
One of the following:
0 is returned.{{< /multitabs >}}