added an index of the count of message types