3.1.4.2.1 Determining the MessageCount Field Value

An acknowledgment count for processed message sequences MUST be determined by examining the oldest entries in the InboundMessageList for the connection (1), and counting the  number of sequential entries with a state of ‘complete’. Those entries MUST be removed from the InboundMessageList. That number of entries is set in the MessageCount field.