UITableView Jumlah total baris

func getAllRowCount()->Int{
    var rowCount = 0
    for index in 0...self.tableView.numberOfSections-1{
        rowCount += self.tableView.numberOfRows(inSection: index)
    }
    return rowCount
}
Jean-Paul M.