def read_messages_count(path, repeat_every):
	"""
	Count the predictions given so far
	(may be used in case of retraining)
	"""
	file_list=list(path.iterdir())
	nfiles = len(file_list)
	if nfiles==0:
		return 0
	else:
		return ((nfiles-1)*repeat_every) + len(file_list[-1].open().readlines())