Added word frequency counter