A Java application for counting n-grams in a string.