Interface for checking how many times a given task can be retried following a failure.