added message counter