Create a function to determine the table's row size and use it.