sane loop count