get number of columns from supported file name or matrix
ncolHelper(data)
data
either a file name or a matrix
number of columns