def f_line_count(path, *args, **kwargs):
	"""
	A quick utility function to count the number of lines in
	the given file.

	:param path
		A string or pathlike object pointing to a file whose
		lines to count.
	
	:return int
		The number of lines in the given file.
	"""
	lines = 0
	with open(path, **kwargs) as handle:
		for _ in handle:
			lines += 1
	return lines