Isn't it easier to count them all before for loop?