public static int subtask1(CompositeText document) {
		List<TextComponent> sentences = listOfAllSentences(document);
		List<String> allWords;
		Set<String> uniqueWords;
		int count=0;
		for(int i=0;i<sentences.size();i++){
			allWords = new ArrayList<String>();
			uniqueWords = new HashSet<String>();
			for(TextComponent token:sentences.get(i)){
				if (token instanceof Token && token.getType().equals(TokenType.WORD)) {
					allWords.add(token.getValue());
					uniqueWords.add(token.getValue());
				}
			}
			if (allWords.size() > 0 &&  uniqueWords.size() >0){
				if (allWords.size() != uniqueWords.size()){
					count++;
				}
			}
		}
		return count;
	}