ncols function

Counts the number of columns of whitespace delimited file.