[minor] Would `if (!(count < NUM_RETRIES)) {` be easier to understand?