add basic term-freq calculation script