Single line code


#1

stringstream ss(s);
string w;
while(ss>>w){}
return w.length();