Change sum accumulator in compute_total_stats to 64 bit