Implements the Get aggregates (total number of objects filtered)

        maps to PATCH /api/object_name/get_aggregates/ in rest semantics
        :param request: rip.Request
        :return: rip.Response

def get_aggregates(self, request):
        """
        Implements the Get aggregates (total number of objects filtered)

        maps to PATCH /api/object_name/get_aggregates/ in rest semantics
        :param request: rip.Request
        :return: rip.Response
        """
        pipeline = crud_pipeline_factory.get_aggregates_pipeline(
            configuration=self.configuration)

        return pipeline(request=request)