save data, count row and column, print column names