---
title: numberOfRows
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstableview/numberofrows
---

# numberOfRows

The number of rows in the table.

## Declaration

```swift
var numberOfRows: Int { get }
```

## Discussion

Discussion Typically you should not ask the table view how many rows it has; instead, interrogate the table view’s data source.

## See Also

### Related Documentation

- [numberOfRows(in:)](appkit/nstableviewdatasource/numberofrows(in:).md)

### Table Dimensions

- [numberOfColumns](appkit/nstableview/numberofcolumns.md)
