Evaluate CMD_COUNT automatically