fix failing tests.  use db.count instead of array of seqNumbersReceived