[2108] port of waelti.statistics