<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_components(*paths, **kwargs):
 """ Loads all components on the paths. Each path should be a package or module. All components beneath a path are loaded. Args: paths (str):
 A package or module to load Keyword Args: include (str):
 A regular expression of packages and modules to include. Defaults to '.*' exclude (str):
 A regular expression of packges and modules to exclude. Defaults to 'test' continue_on_error (bool):
 If True, continue importing even if something raises an ImportError. If False, raise the first ImportError. Returns: int: The total number of modules loaded. Raises: ImportError """

    num_loaded = 0
    for path in paths:
        num_loaded += _load_components(path, **kwargs)
    return num_loaded