Number Of Rows In Array Python Methods