That works.. up to a point..
It literally splits around spaces.
So if you have a string of four spaces, you'd get 5 results,
even though there is not one word in there.
instead, use something like this:
$aParts=preg_split("/(\w)+(\W)+/",$sString);
echo count($aParts);
That will count how many times there is a word character followed by a non-word character.