Fix variable names:

* max_retry -> max_retry_count
* retry_count -> max_retry_count