title: Count the number of rows with xpath but .size() is not available
body: <p>I'm trying to count the number of rows in table and based on my research for webdriver, I should be using as code below. However, I am unable to see .size() method populated and i'll be appreciated if someone can explain to me?</p>
  
  <pre><code>int rowCount = driver.findElement(By.xpath("//*[@id='hitlist']/form/table/tbody/t")).size();
  </code></pre>
  
  <p>Thanks. </p>