1368 num attempts

@ysahnpark, would you give this a quick code review when you have a chance.  This is a tweak in ips to calculate remaining attempts and a placeholder for what is currently a hardcoded value in getSequenceNode for maxAttempts.