Row size of a table

How do I find the number of rows in a table for a loop to repeat. In Selenium WebDriver we have .size().