def METHOD_NAME(cls, component_params: Dict[str, Any]) -> int:
    route_by_language = component_params.get("route_by_language", True)
    if route_by_language is False:
        return 1
    languages_to_route = component_params.get("languages_to_route", DEFAULT_LANGUAGES)
    return len(languages_to_route)