Added bigramCount, trigramCount methods