for (Tree tree : trees) {
counter++;
List<TaggedWord> taggedWords = tree.taggedYield();
for (int i = 0, size = taggedWords.size(); i < size; i++) {
TaggedWord taggedWord = taggedWords.get(i);
String word = taggedWord.word();
if (word.equals(Lexicon.BOUNDARY)) {
continue;
}
wordCounter.incrementCount(taggedWord);
wordLengthCounter.incrementCount(Integer.valueOf(word.length()));