nodes: 0, module; 1, function_definition; 2, function_name:zcard; 3, parameters; 4, block; 5, identifier:self; 6, identifier:name; 7, expression_statement; 8, with_statement; 9, comment:"""
          Returns the cardinality of the SortedSet.
  
          :param name: str     the name of the redis key
          :return: Future()
          """; 10, with_clause; 11, block; 12, with_item; 13, return_statement; 14, as_pattern; 15, call; 16, attribute; 17, as_pattern_target; 18, attribute; 19, argument_list; 20, identifier:self; 21, identifier:pipe; 22, identifier:pipe; 23, identifier:pipe; 24, identifier:zcard; 25, call; 26, attribute; 27, argument_list; 28, identifier:self; 29, identifier:redis_key; 30, identifier:name
code: def zcard(self, name):
          """
          Returns the cardinality of the SortedSet.
  
          :param name: str     the name of the redis key
          :return: Future()
          """
          with self.pipe as pipe:
              return pipe.zcard(self.redis_key(name))