def match_sets(required, potential):
	"""
	Compare the features in required to potential,
	return the number of extra features in potential
	-1 means missing features
	"""
	if required.issubset(potential):
		return len(potential) - len(required)
	else:
		return -1