In exporting an Excel file - how to get the number of columns

thank you very much!