How do I implement word count in Python?
<pre><code>x="I use computers"
print (x)
y=x[0:1]
y1=x[2:5]
y2=x[6:15]
n=(y+y1+y2)
print len(n)
</code></pre>

<p>I know this counts the number of letters but how do I count the number of words in the sentence?</p>
