Add statistics into the results.json file.