methods for getting wordcounts