Calculate the number of steps in the Collatz conjecture for a given number