Added word counting and stemming