Completed Collatz Sequence

Working script to calculate how many steps it takes to complete the
Collatz sequence for any given number. Accepts sentinel number to quit.