real word pattern
fixed &amp; getting recognized as delimiter
fixed newline in wordPattern
start counting words
replace tags with one space instead of removing them totally

This prevents words from connecting on tag removal.
add word counter
add a lock for dict
grouped all mutexes together
Merge branch 'word_counter'