JAVA
Java How To Count Words
You can easily count the number of words in a string with the following example: