def count_matched_numbers(a:list, b:list):
	"""
	Write a function that takes two lists as parameters and returns a list
	containing the number of elements that occur in the same index in both
	lists. If there is not common elements in the same indices in both lists, return False
	Example:
	>>> count_matched_numbers([1, 2, 3], [1, 2, 3])
	3
	>>> count_matched_numbers([1, 2, 3], [1, 5, 3, 4, 5])
	2
	>>> count_matched_numbers([1, 2, 3], [4,5,6])
	False
	"""
	
	matching = 0

	length_of_b = len(b)

	if len(b) == 0:
		return 0

	for key,value_1 in enumerate(a):
		if key>= length_of_b:
			break # len(a)>len(b) AND we reached the limit 
		the_type = type(value_1) # getting the type of the element in first list
		try:
			value_2 = the_type(b[key]) # casting types
		except Exception as e:
			continue # Sometime casting may fail
		
		# Now we are sure that value_1 and value_2 have the ame type
		if value_1 == value_2:
			matching += 1
	#print(matching)
	if matching:
		return matching
	else:
		return False