debug : correct count_cmd