Tracking Retry Count in Effect.retry

Given e.g. Effect.retry, is there a way to get the number of times the effect has already been retried without somehow having a counter somewhere else we're incrementing?
Was this page helpful?