Added a new statistic extractor, using a mask with integer classes