Defines the length of matrix in number of samples.
Returns: Int32
The length of matrix equals: rows*cols.