Comparison table

I’m supposed to build a site for my client that should do comparisons between companies for the visitors of the site.

On the main page the visitor will check multiple checkboxes of the companies he wants to compare between, and then he will click on a button to view a table with all the companies that he checked.

My challenge is how to display the comparison table. I can’t anticipate how many companies the visitor will choose, so I don’t have a clue how to achieve this!

Please help me!