For loop with count