def words(query):
	"""lines(query) -- print the number of words in a given file
	"""
	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