Return the retry count to the after render callback.