def stop(self, instances, count=0):
        """Stop each provided running instance.

        :param count:
        :param instances: A list of instances.
        :type instances: list
        """
        if not instances:
            return
        if count > 0:
            instances = self._scale_down(instances, count)
        self.ec2.stop_instances([i.id for i in instances])
Stop each provided running instance.

        :param count:
        :param instances: A list of instances.
        :type instances: list