INPUTSEQUENCENUMBER

Pop the top item from the stack as an input index (Script Number). Push the sequence number of the input at that index to the stack as a Script Number. Input: index Output: number