def METHOD_NAME(filename, counts):
    dburl = f"sqlite:///{filename}?mode=ro"
    engine = create_engine(dburl)
    insp = inspect(engine)
    tables = insp.get_table_names()
    for table in tables:
        counts[table] += count_table(engine, table)
    return counts