Account for request count, latency and errors.

In the retry handler, count the number of requests, retries and errors
and also accumulate the number of nanoseconds the requests took.