def METHOD_NAME(
    self,
    table: str,
    sa_connection: "Optional[sqlalchemy.engine.base.Connection]" = None,
) -> Optional[int]:
    """Return table count from stats gathering rather than running count(*)."""
    sql = dedent(
        """
        SELECT table_rows
        FROM information_schema.tables
        WHERE table_schema = '{}'
        AND table_name = '{}'
        """.format(
            self._schema, table
        )
    )
    if sa_connection:
        row = sa_connection.execute(sqlalchemy.text(sql)).fetchone()
    else:
        with self._alchemy_db.connect() as conn:
            row = conn.execute(sqlalchemy.text(sql)).fetchone()
    return row[0] if row else row