Fixed bug: used count instead of  in updating qagnt_rules_not_end_argument and qagnt_rules_end_argument