def matchDictionaries(first, second):
	"""
		Match key value pairs in the first dictionary with the second and return the number of matches. Absence of a key in the second dictionary is counted as a mismatch and extraneous keys in the second dictionary are ignored.
	"""
	matches = 0
	for key in first:
		if key not in second: continue
		if first[key] == second[key]: matches += 1

	return matches