Or you can use $!, which holds the value of the last $? in the script:

//echo -a I typed $?="Type your message" | echo -a I typed $! again | echo -a I typed $! once more