If you wish to stop after a certain number of attempts with an `ExponentialBackOff` you have to calculate the `maxElapsedTime` corresponding to the number of attempts. Add a new property to make it more convenient to stop after a certain number of attempts. See gh-27071