Add new generic counter for messages

Will allow all global messages to be counted in a single object