give the number of extremes