fix counter

counter showed the sum of the groups instead of the messages.