public static long getLetCount(File file) throws FileNotFoundException {
		// This variables stores the number of letters.
		long numOfLets = 0;
		// This scans the document.
		BufferedReader reader = null;
		// Initializes the reader.
		reader = new BufferedReader(new FileReader(file));
		// A temporary variable to store one line.
		String line;
		// Scans through the text file & counts the number of letters.
		try {
			while ((line = reader.readLine()) != null) {
				// Sorts these into words.
				line = line.replaceAll(" ", "");
				// Goes through each symbol to make sure it's a letter.
				for (int ix = 0; ix < line.length(); ix++) {
					numOfLets += ((line.charAt(ix) > 64 && line.charAt(ix) < 91) || (line
							.charAt(ix) > 96 && line.charAt(ix) < 123)) ? 1 : 0;
				}

			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		// Closes the reader.
		if (reader != null) {
			try {
				reader.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		// Returns the number of letters.
		return numOfLets;
	}