def num_parameters(network):
    """
    returns the number of "parameter"s in a network
    """
    vws = network.relative_network().find_vws_in_subtree(tags=["parameter"])
    return sum(vw.value.size for vw in vws)