Very simple Python script to count the number of words in a block of text

Recently I had to write a small 'essay' which required not more than 250 words.  Since it was Computer Science related, I figured I would write a small script to count the words for me... this is what I came up with.

doc = raw_input()
count = doc.count(' ') + 1
print count