How can I count words with comas, spaces or both?