code: def get_table_width(self):
          
          if self.column_count == 0:
              return 0
          width = sum(self._column_widths)
          width += ((self._column_count - 1)
                    * termwidth(self.column_separator_char))
          width += termwidth(self.left_border_char)
          width += termwidth(self.right_border_char)
          return width
docs: Get the width of the table as number of characters.
  
          Column width should be set prior to calling this method.
  
          Returns
          -------
          int
              Width of the table as number of characters.