def aggr_vms_data(vms):
    """
    Function that aggregate vm entity data given a collection (cursor retuned from mongo query) of vms
    """
    vms_data = {"nb_vm": 0}
    vms_data["nb_vm"] = vms.count()
    return vms_data