code: def words(query):
  	
  	filename = support.get_file_name(query)
  	if(os.path.isfile(filename)):
  		with open(filename) as openfile:
  			print len(openfile.read().split())
  	else:
  		print 'File not found : ' + filename
docs: lines(query) -- print the number of words in a given file