code: private static int totalSyllables(String strText) {
          int intSyllableCount = 0;
          
          List<String> arrWords = (new WhitespaceTokenizer()).tokenize(strText);
          int intWordCount = arrWords.size();
          for (int i = 0; i < intWordCount; ++i) {
              intSyllableCount += syllableCount(arrWords.get(i));
          }
          return intSyllableCount;
      }
docs: Returns total syllable count for text.
  
  @param   strText      Text to be measured
  @return