refactor: statistics on result set
Refactored statistics script to it's own directory such that we can use it as a node js service later down the road.
Refactored statistics script to it's own directory such that we can use it as a node js service later down the road.