Loop function to count 1 through 100