@property<EOL><INDENT>def compare_count(self):<DEDENT>
if self.query.options["<STR_LIT:count>"] is not None:<EOL><INDENT>count_opt = int(self.query.options["<STR_LIT:count>"])<EOL>self._cache_at_least(count_opt + <NUM_LIT:1>)<EOL>return cmp(len(self._result_cache), count_opt)<EOL><DEDENT>if self.query.options["<STR_LIT>"] is not None:<EOL><INDENT>min_opt = int(self.query.options["<STR_LIT>"])<EOL>if not self._cache_at_least(min_opt):<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT><DEDENT>if self.query.options["<STR_LIT>"] is not None:<EOL><INDENT>max_opt = int(self.query.options["<STR_LIT>"])<EOL>if self._cache_at_least(max_opt + <NUM_LIT:1>):<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT><DEDENT>if self.query.options["<STR_LIT>"] is not None:<EOL><INDENT>between = self.query.options["<STR_LIT>"]<EOL>min_opt, max_opt = between[<NUM_LIT:0>], between[-<NUM_LIT:1>]<EOL>if not self._cache_at_least(min_opt):<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT>if self._cache_at_least(max_opt + <NUM_LIT:1>):<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>return <NUM_LIT:0><EOL><DEDENT>return <NUM_LIT:0><EOL>
Returns how the result count compares to the query options.

The return value is negative if too few results were found, zero if enough were found, and
positive if too many were found.

Returns:
    int: -1, 0, or 1.