The calculation of the total count rate in a detector can be done similar to that of an integrated energy flux by using the folding option. In this case the integration boundaries are fixed by the energy acceptance of the chosen detector, whose properties option must be given by the appropriate calibration files.
Midas 001> $edt count_rate.par cal fold cor_file exsas_cal:effarea_pspcb res_file exsas_cal:drmpspc model powl(1,2) par 1 1.0 par 2 -1.5
Midas 002> model/spectrum count_rate Got spectral parameters from count_rate.par. Got corrected effective area from exsas_cal:effarea_pspcb. Got detector response matrix from exsas_cal:drmpspc. DATA SET 1 MODEL 1 POWL(1,2) PARAMETER 1 1.0 PARAMETER 2 -1.5 energy range from .71345E-01 keV to 3.01 keV count rate = 5.009E+02 counts/sThe next example shows only another variation to get the same result. The calibration files are given directly as parameters of the command line.
Midas 001> $edt count_rate.par cal fold model powl(1,2) par 1 1.0 par 2 -1.5
Midas 003> model/spec count_rate ? ? exsas_cal:effarea_pspcb exsas_cal:drmpspc Got spectral parameters from count_rate.par. Got corrected effective area from exsas_cal:effarea_pspcb. Got detector response matrix from exsas_cal:drmpspc. DATA SET 1 MODEL 1 POWL(1,2) PARAMETER 1 1.0 PARAMETER 2 -1.5 energy range from .71345E-01 keV to 3.01 keV count rate = 5.009E+02 counts/s