Fixed offset count calculation.