TXINPUTCOUNT

Push the count of inputs in the current transaction to the stack as a Script Number. Input: nothing Output: number