This does the necessary count of table data before displaying them.
is (unfortunately) required to create some useful variables for templates.
foreach data table created, it will count the number of rows and
columns in the table.
will also create a max_width variable for the table, to give an
estimate width for the whole table * * if it can.