Fixed length bug in counter that makes it impossible to do 1536 iterations.