More secure way of finding the number of changed relations by the global model.