Update PlotMod.py

Trick for guessing number of rows in text file, saves one pass of whole text file just to read number of rows, to allocate array of correct size.