Python Count Number Of Rows In Matlab