'Return the number of rows in the table.'

def calc_table_row_count(self, table_name):

    t = sqlalchemy.Table(table_name, self.metadata, autoload=True)
    session = self.sessionmaker()
    row_count = session.query(sqlalchemy.func.count('*')).select_from(t).scalar()
    return row_count
