Finds the number of rows, columns and the total elements of a matrix and exposes these values on ports.