How to verify the total number of responses present in table ?

How to verify the total number of responses present in table ?
For e.x in below screenshot i have Response Data with shows and score. I wanted to verify the number of shows displayed like count. Its a table and inside table its getting displayed.


Need to match the total number of results displayed?

Maybe something like:

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
import org.openqa.selenium.By as By
import org.openqa.selenium.WebDriver as WebDriver
import org.openqa.selenium.WebElement as WebElement

WebDriver driver = DriverFactory.getWebDriver()
WebElement Table = driver.findElement(By.xpath('//td/div/table'))
'To count rows of table it will get all the rows available in the table'
List<WebElement> rows = Table.findElements(By.tagName('tr'))
println('No. of rows: ' + rows.size())
WebUI.comment("No. of rows: ${rows.size()}")

hello,
similar solution to grylion54’s is to use xpath functions directly. few years back i write keyword that can return evaluated fn() from xpath such as count
take look here: