Obtain number of rows and columns directly from the sketches