code: def total_results(
      data: Union[List[JSONRPCResponse], JSONRPCResponse, None], *, ok: bool = True
  ) -> int:
      
      if isinstance(data, list):
          return sum([1 for d in data if d.ok == ok])
      elif isinstance(data, JSONRPCResponse):
          return int(data.ok == ok)
      return 0
docs: Returns the total parsed responses, given the return value from parse().