End result The end result is an envelop icon in which a counter displays the number of messages for the current logged in contact. Datamodel Simplified view of the datamodel, just to support the understanding of the technical setup. Content snippet To accomplish this, start by creating an HTML content snippet. This snippet will serve as the foundation for counting the number of messages and displaying the envelop icon. In this scenario the name of the snippet is: Message Counter.