counts for loops