Add number of peaks field to energyscan model.