loop trip count