public function prepareCountRequest(DataQueryControllerDatasetRequest $request) {
        $datasourceRequest = new DatasetCountRequest($request->datasetName);

        // needs to be called before any additional methods are called
        $datasourceRequest->addOptions($request->options);

        $datasourceRequest->addCompositeQueryValues($request->parameters);

        return $datasourceRequest;
    }
 public function prepareDatasetCountRequest(DataQueryControllerDatasetRequest $request)
 {
     $datasourceRequest = new DatasetCountRequest($request->datasetName);
     $datasourceRequest->addCompositeQueryValues($request->parameters);
     return $datasourceRequest;
 }