add -exact_countn, -le_countn, -ge_countn, and -last_one_counts flags