wc.py

import word

count = 0
filename = "../bee.txt"
with open(filename) as f:
	for w in word.next_word(f):
		count += 1
print "%s: %d words" % (filename, count)