Call File - Attempt # in variable

Is there any way to access the call file attempt # (MaxRetries: x) in a variable? I see the attempt # on the console, but wondering if I can get to it directly - specifically via an AGI script.

Any assistance would be much appreciated.

thanks,
Will