Use counter, then Math.abs