code: public Observable<TaskCounts> getTaskCountsAsync(String jobId, JobGetTaskCountsOptions jobGetTaskCountsOptions) {
          return getTaskCountsWithServiceResponseAsync(jobId, jobGetTaskCountsOptions).map(new Func1<ServiceResponseWithHeaders<TaskCounts, JobGetTaskCountsHeaders>, TaskCounts>() {
              @Override
              public TaskCounts call(ServiceResponseWithHeaders<TaskCounts, JobGetTaskCountsHeaders> response) {
                  return response.body();
              }
          });
      }
docs: Gets the task counts for the specified job.
  Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.
  
  @param jobId The ID of the job.
  @param jobGetTaskCountsOptions Additional parameters for the operation
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the TaskCounts object