added 'sum' and 'count' to SamplesMessage