def get_model_size(model):
    """ Get numbers of model components

    Args:
        model (:obj:`core.Model`): model

    Returns:
        :obj:`dict`: dictionary with numbers of each type of model component
    """
    return {
        "submodels": len(model.get_submodels()),
        "compartments": len(model.get_compartments()),
        "species_types": len(model.get_species_types()),
        "species": len(model.get_species()),
        "parameters": len(model.get_parameters()),
        "references": len(model.get_references()),
        "reactions": len(model.get_reactions()),
    }