Add word segmentation and basic term count