added SequenceNumberStats and unit test