def get_plugin_count(repositories):
    """Returns the total number of plugin

    Args:
        repositories (dict): A list of repositories with their plugins.

    Returns:
        The number of plugins
    """
    i = 0
    if repositories:
        for r in repositories:
            plugins = r.get("plugins")
            if not plugins:
                continue
            i += len(plugins)

    return i