From this condition, it appears that getMaxRetries() includes the first attempt.  However, the comment at the beginning said that the default value for max-retries is 0, which seems to suggest that retries do include the first attempt.