File count lines function updated.  Thanks: Johan Nordström