> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validio.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Row Count

> Verify the number of rows by querying the data and counting records.

## Validator overview

The Row Count validator counts the rows in each window of your data. It works like the Volume validator configured for the Count metric. By default it counts every record. Use a filter if you want to count only some of the records.

For more information, see [Volume](https://docs.validio.io/v11.3/docs/validators/validator-types/volume.md) validators. For an overview of all validator types, see [Validator Types](https://docs.validio.io/v11.3/docs/validators/validator-types.md).

## Metric configuration parameters

| Parameters | Description |
| :- | :- |
| Filter | (Optional) Select from a list of filters or create a new filter to specify which records to include. |
| Window | Select from a list of windows or create a new window to specify how to aggregate the data. |
| Segmentation | (Optional) Apply segmentation to analyze data in separate groups. Default is `Unsegmented`. |

## Segments with no rows

For each window, a row count either has a value, which can be 0, or has no value at all. A value, 0 included, appears as a point on the graph and is checked against the threshold. A window with no value appears as a gap in the graph, and no incident can be raised for it.

Whether a [segment](https://docs.validio.io/v11.3/docs/segmentation.md) with no rows gets a 0 or no value depends on whether the validator has a [filter](https://docs.validio.io/v11.3/docs/filters.md):

| Segment in this window | Row Count without a filter | Row Count with a filter |
| :- | :- | :- |
| Has rows, and some pass the filter | Number of rows | Number of rows that pass the filter |
| Has rows, and none pass the filter | Number of rows | 0 |
| Has no rows, but had rows in earlier windows | 0 | No value |
| Has never had rows | No value | No value |

Without a filter, Validio fills in 0 for a segment that had rows before and has none now. A drop to zero rows then shows on the graph and can raise an incident. With a filter, Validio reports a count only for windows where the segment has rows.

> [!TIP]
>
> To get alerted when a segment stops receiving data, use a Row Count validator without a filter. Use a filtered validator to track how many of the rows that arrive meet a condition.

The same applies to a [Volume](https://docs.validio.io/v11.3/docs/validators/validator-types/volume.md) validator with the Count metric. Validio fills in 0 only when the validator has no field and no filter. Volume validators with other metrics don't fill in 0.
