BF: reset loop counter