---
url: /flow/guide/scripting-reference/classes/data-set/dataset.recordcount.md
---

# Dataset.RecordCount

## Declaration

`property RecordCount : cardinal;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value :=DATASET.RecordCount; //return the number of records in this dataset
end;
```

## Description

Returns the number of records in the dataset.
