Counting the occurrence of each word token