add word occurence func