Added a simple message counter