import random
class  DiceSimulator:
	def __init__(self):
		self.results=[]
	def roll(self,times):
		self.results.append(random.randint(1,6))
	def count(self,number):
		return self.results.count(number)


def main():
	obj=DiceSimulator()
	while True:
		try:
			x=input("Ρίχνω ζάρι (Υ/Ν)?¨")
			if x=="Y" or x=="y":
				obj.roll()

			else:
				break
		except Exception as e:
				print (f"Error:{e}")
	try:
		y=input("Poion arithmo (1...6)?:")
		y=int(eval(y))
		if y>=1  and y<=6:
			print (f"Count={obj.count(y)}")
		else:
			print ("Arithmos 1...6")
	except Exception as e:
		print(f"error:")



if __name__=="__main__":
	main()

