Python3 solution
\nclass Solution:\n    def displayTable(self, orders: List[List[str]]) -> List[List[str]]:\n        table_set = set()\n        dish_set = set()\n        table_d
```\nclass Solution:\n    def displayTable(self, orders: List[List[str]]) -> List[List[str]]:\n        table_set = set()\n        dish_set = set()\n        table_dict = {}\n        \n        for order in orders:\n            _, table_no, dish_str = order\n            if table_no not in table_dict:\n                table_dict[table_no] = defaultdict(int)\n            table_dict[table_no][dish_str] += 1\n            table_set.add(table_no)\n            dish_set.add(dish_str)\n        \n        table_ordered_lst = sorted(list(table_set), key=lambda s: int(s))\n        dish_ordered_list = sorted(list(dish_set))\n        \n        row1 = ["Table"] + dish_ordered_list\n        remaining_rows = []\n        for table_no in table_ordered_lst:\n            table_row = [table_no]\n            for dish in dish_ordered_list:\n                if dish not in table_dict[table_no]:\n                    table_row.append("0")\n                else:\n                    table_row.append(str(table_dict[table_no][dish]))\n            remaining_rows.append(table_row)\n        return [row1] + remaining_rows\n     ```
[]