

def main():
	list1=input("Enter the list elements: ")
	var=input("Enter the data to be added: ")
	if list==type(var):
		list1.extend(var)
	else:
		list1.append(var)
	cnt=("enter which number you want to count:")
	
	
	print("after modifying",list1)
	print("Count of ",list1.count(cnt))
	print("index of count variable",list1.index(cnt))
	

if __name__ == '__main__':
	main()
