Suppose that @mat is a matrix with dimension 4x5 (4 rows and 5 columns)
if I use $rows=@mat I can get the number of rows.
Is there something similar to extract the number of cols?
If not how can I do that considering that not every element of the matrix is set to a value?