calcualte the number of warps (cols) in a pattern
a drawdown or any 2D array
the number of cols of 0 if undefined
calcualte the number of warps (cols) in a pattern