Add FunctionCall.getNumRetries.

FunctionCall.getNumRetries returns the number of times the wrapped function was retried. This fixes #10.