Why not `self.num_attempts += 1` ?