Simple stats script
Write stats into stats.json