How to get number of specific words from a string