contrainer for message count (need tests)