For correct calculation of count_err
This is an experimental data analysis library for zebra instrument.