Add cumulative exports.
Add test for cumulative result counter.
fix counter to work properly.
part of #64.
Fix cumulative data exports.