Adds a check that the memref.instr.encoding_is_new flag is valid in the basic_counts tool.
Issue: #5520 (closed)