title: how to count words in a string having special characters
body: <p>I have to count number of words in a string like (hello how? are y*ou Akanksha-Mishra?) so the answer is 4.because the word including special character is not considered and words joined by hyphen is considered to be one word. So, how can I do it.</p>