added a method to Record to retrieve statistical data of messages that were received