python print number of rows and columns