Updated to getRowCount() method on tables