public static void main(String[] args) {
		try {
			File file = new File("C:\\Users\\Collin\\Downloads\\words.txt");
			Scanner readFile = new Scanner(file);
			int maxLines = 0;
			int answer = 0;
			String wordList = readFile.nextLine();
			String[] words;
			words = wordList.replace("\"","").split(",");
			for (int count = 0; count < words.length; count++) {
				if (words[count].length() > maxLines) {
					maxLines = words[count].length();
				}
			}
			maxLines *= 26;
			ArrayList triangles = new ArrayList();
			for (double count = 1; .5*count*(count+1) < maxLines; count++) {
				triangles.add((int)(.5*count*(count+1)));
			}
			for (int count = 0; count < words.length; count++) {
				char[] letters = words[count].toLowerCase().toCharArray();
				int lineValue = 0;
				for (int insideCount = 0; insideCount < letters.length; insideCount++) {
					lineValue += (int)letters[insideCount] - 96;
				}
				if (triangles.contains(lineValue)) {
					answer++;
				}
			}
			System.out.println(answer);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}