finished function to determine num rows and columns in text file