def METHOD_NAME(vanilla_logic, level: int) -> StardewRule:
    villager_count = []
    for villager in all_villagers:
        if villager.mod_name in vanilla_logic.options[options.Mods] or villager.mod_name is None:
            villager_count.append(vanilla_logic.can_earn_relationship(villager.name, level))
    return Count(level * 2, villager_count)