Number of columns of the matrix



length(transpose(m))  would do it.
But you probably don't want to compute this too often :)