def get_header_line_count(fname):
	""" returns the number of blurb lines in a lammps log file before the acutal thermo data 	
	
	Args:
		fname (str): filename of the logfile
	
	Returns:
		list of str: column names
		int        : number of lines before the data
		int        : number of lines after  the data
	"""
	f = open(fname,'r')
	txt  = f.read().split('\n')
	n = 0
	header = []
	for i,l in enumerate(txt):
		n += 1
		if l.count("Step E_vdwl E_coul") != 0:
			header = l.split()
			break
	nb = 0
	for i,l in enumerate(txt[::-1]):
		nb += 1
		if l.count("WARNING") != 0:
			break
		elif l.count("Loop time of") != 0:
			break
	f.close()
	return header,n,nb