ISPN-4992 Implement node statistics

Master only. Tristan should review