Calculate ngram counts for topics
Stop debug printing