---
title: numberOfRows
framework: watchkit
role: symbol
role_heading: Instance Property
path: watchkit/wkinterfacetable/numberofrows
---

# numberOfRows

The number of row controllers available for you to retrieve.

## Declaration

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

## Discussion

Discussion The value of this property is 0 until you call the setRowTypes(_:) or setNumberOfRows(_:withRowType:) method. After calling one of those methods, this property contains the number of row controllers that were created.

## See Also

### Getting the Row Controllers

- [rowController(at:)](watchkit/wkinterfacetable/rowcontroller(at:).md)
