fixes a bug in the all iterator length where if you had sorting or offsets it would fail count