Statistics for XPS measurements for probing dynamics of charging