code: public PagedList<PoolNodeCounts> listPoolNodeCounts(final AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions) {
          ServiceResponseWithHeaders<Page<PoolNodeCounts>, AccountListPoolNodeCountsHeaders> response = listPoolNodeCountsSinglePageAsync(accountListPoolNodeCountsOptions).toBlocking().single();
          return new PagedList<PoolNodeCounts>(response.body()) {
              @Override
              public Page<PoolNodeCounts> nextPage(String nextPageLink) {
                  AccountListPoolNodeCountsNextOptions accountListPoolNodeCountsNextOptions = null;
                  if (accountListPoolNodeCountsOptions != null) {
                      accountListPoolNodeCountsNextOptions = new AccountListPoolNodeCountsNextOptions();
                      accountListPoolNodeCountsNextOptions.withClientRequestId(accountListPoolNodeCountsOptions.clientRequestId());
                      accountListPoolNodeCountsNextOptions.withReturnClientRequestId(accountListPoolNodeCountsOptions.returnClientRequestId());
                      accountListPoolNodeCountsNextOptions.withOcpDate(accountListPoolNodeCountsOptions.ocpDate());
                  }
                  return listPoolNodeCountsNextSinglePageAsync(nextPageLink, accountListPoolNodeCountsNextOptions).toBlocking().single().body();
              }
          };
      }
docs: Gets the number of nodes in each state, grouped by pool.
  
  @param accountListPoolNodeCountsOptions Additional parameters for the operation
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws BatchErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;PoolNodeCounts&gt; object if successful.