add measure count validation