Fix swap count for yaroslavskiy

There was some code that in essence did swapping but didn't acutally
use the swap method. I fixed this.