> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/check/check-count.md).

# Check Count

Check Count compares how many [Elements](/elements/creating-elements.md) match the selector against what you expect. Use it for lists, tables, and repeating UI blocks.

![Check count Test Step](https://app.does.qa/screenshots/node/check_count.png)

## When to use it

* Confirm a search returned the expected number of results.
* Verify a cart or list grew or shrank after an add or remove action.
* Use `greaterThanOrEqual` when you only need to prove at least one match exists.

## Configure

### Basics

| Field               | What to set                                                                                |
| ------------------- | ------------------------------------------------------------------------------------------ |
| **Element**         | The [Element](/elements/creating-elements.md) whose matches to count                       |
| **Comparison Type** | [Comparison Type](/test-step-options/comparison-type.md) (`greaterThanOrEqual` by default) |
| **Value**           | Expected count as text and/or a [Value](/values/value-store.md)                            |

### Advanced

| Field                                 | What to set                                                          |
| ------------------------------------- | -------------------------------------------------------------------- |
| **Status on fail**                    | [Failed Status](/test-step-options/failed-status.md)                 |
| **When should screenshots be taken?** | `Always` or `On Failures` (default)                                  |
| **Value Standardization**             | [Value Standardization](/test-step-options/value-standardization.md) |

{% hint style="info" %}
**Pro tip:** The default comparison is `greaterThanOrEqual`, which suits "at least one result" checks. Switch to `equals` when the exact count matters.
{% endhint %}

## Related

* [Store element count](/test-steps/data/store-element-count.md)
* [Check Text](/test-steps/check/check-text.md)
* [Check](/test-steps/check.md)

**Tags:** `check`, `count`, `test`, `expect`, `assert`, `element`, `total`
