code: public PagedList<PoolNodeCounts> listPoolNodeCounts() {
          ServiceResponseWithHeaders<Page<PoolNodeCounts>, AccountListPoolNodeCountsHeaders> response = listPoolNodeCountsSinglePageAsync().toBlocking().single();
          return new PagedList<PoolNodeCounts>(response.body()) {
              @Override
              public Page<PoolNodeCounts> nextPage(String nextPageLink) {
                  return listPoolNodeCountsNextSinglePageAsync(nextPageLink, null).toBlocking().single().body();
              }
          };
      }
docs: Gets the number of nodes in each state, grouped by pool.
  
  @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.