# query.recordCount()

row count of given query

```
query.recordCount( )
```

**Returns:** number

*This function does not take any arguments.*

# Examples

```cfml
q = queryNew( "id,name","int,varchar");
q.addRow(2);
q.setCell("id", 1, 1);
q.setCell("id", 2, 2);
q.setCell("name", "one", 1);
q.setCell("name", "two", 2);
dump(q);
writeDump(q.recordcount());
q.addRow(2);
writeDump(q.recordcount());
q.addRow(2);
writeDump(q.recordcount());
```

# Categories

[Queries](../../../categories/query.md)

# See Also

[QueryRecordCount()](../../functions/queryrecordcount.md), [Query](../query.md)