lines(query) -- print the number of lines in a given file

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