{num_cols=NF}
END {printf "#!/bin/csh -f \n \nset num_cols=%i\n" ,num_cols}