def _filter_occurrences(count, relat_op):
<EOL>if "<STR_LIT>" in relat_op:<EOL><INDENT>count = dfilter(lambda x: x == relat_op["<STR_LIT>"], count)<EOL><DEDENT>elif "<STR_LIT>" in relat_op:<EOL><INDENT>count = dfilter(lambda x: x != relat_op["<STR_LIT>"], count)<EOL><DEDENT>if "<STR_LIT>" in relat_op:<EOL><INDENT>count = dfilter(lambda x: x < relat_op["<STR_LIT>"], count)<EOL><DEDENT>elif "<STR_LIT>" in relat_op:<EOL><INDENT>count = dfilter(lambda x: x <= relat_op["<STR_LIT>"], count)<EOL><DEDENT>if "<STR_LIT>" in relat_op:<EOL><INDENT>count = dfilter(lambda x: x > relat_op["<STR_LIT>"], count)<EOL><DEDENT>elif "<STR_LIT>" in relat_op:<EOL><INDENT>count = dfilter(lambda x: x >= relat_op["<STR_LIT>"], count)<EOL><DEDENT>return count<EOL>
Filter the occurrences with respect to the selected relational operators