def METHOD_NAME(cnx, table="ecdc_ili"):
    # Count and return the number of rows in the `ecdc_ili` table.
    select = cnx.cursor()
    select.execute(f"SELECT count(1) num FROM {table}")
    for (num,) in select:
        pass
    select.close()
    return num