function to return the length of a file. Used in run_model.py to return the number of points in the landward_boundary polygon.