Adaptation can Counter the Effect of Climate Change on Crop