Fixed regex for word count