Model 1: reset counter in every iteration