# CMS.QUERY Returns the count for one or more items in a sketch. ### Parameters: * **key**: The name of the sketch. * **item**: One or more items for which to return the count. ## Examples ``` redis> CMS.QUERY test foo bar 1) (integer) 10 2) (integer) 42 ``` {{< multitabs id=“cms-merge-return-info" tab1="RESP2" tab2="RESP3" >}} One of the following: * [Array](https://redis.io/docs/latest/develop/reference/protocol-spec#arrays) of [integer replies](https://redis.io/docs/latest/develop/reference/protocol-spec#integers) representing the min-counts of each of the provided items in the sketch. * [Simple error reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-errors) in these cases: invalid arguments, missing key, or wrong key type. -tab-sep- One of the following: * [Array](https://redis.io/docs/latest/develop/reference/protocol-spec#arrays) of [integer replies](https://redis.io/docs/latest/develop/reference/protocol-spec#integers) representing the min-counts of each of the provided items in the sketch. * [Simple error reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-errors) in these cases: invalid arguments, missing key, or wrong key type.