GetStatistics function

Get statistical values