correct GetUnreceiveMessageCount method