Online str_word_count( ) function


int str_word_count ( string $string )
Counts number of words inside string. Return value will be an integer representing the number of words found.