code: public Integer countPost(Query query) throws ApiException {
          ApiResponse<Integer> resp = countPostWithHttpInfo(query);
          return resp.getData();
      }
docs: Get count for query
  Get the number of items matching query criteria
  @param query Query defined with criteria (required)
  @return Integer
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body