keep track of the number of tries