HPCC-12046 Provisional implementation of stats in thor - will be revised

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>