code: def found(self):
          
          if 'ids' in self.kwargs:
              cid = self.kwargs['query']['collection']['eq']
              return len(self.items_by_id(self.kwargs['ids'], cid))
          kwargs = {
              'page': 1,
              'limit': 0
          }
          kwargs.update(self.kwargs)
          results = self.query(**kwargs)
          return results['meta']['found']
docs: Small query to determine total number of hits