def nbAlternatives(instance):
	""" Returns the number of alternatives of the instance.

		:param instance: The instance.
		:type instance: preflibtools.instance.preflibinstance.PreflibInstance

		:return: The number of alternatives of the instance.
		:rtype: int
	"""
	return instance.nbAlternatives