private void getNumberOfLines(File file) throws FileNotFoundException {
		numberOfLines = 10;
		FileReader fileReaderLn = new FileReader(file);
		LineNumberReader lineNumberReader = new LineNumberReader(fileReaderLn);
		try {
			lineNumberReader.skip(Long.MAX_VALUE);
			numberOfLines = lineNumberReader.getLineNumber();
		} catch (IOException e) {
			LOG.error("Error while getting nummber of lines from file.", e);
		}
		closeReader(lineNumberReader);
	}