bean counter repetition for loop example