The text file importer was supposed to have a feature where the total number of lines
in the file was measured if the file was short, or estimated if it was long. However
the variable which was supposed to hold this information was never initialised. This
change fixes that.