A computer performs a certain algorithm to compute an output S for an input N, with both S and N being real values. The algorithm is as follows.
Step 1 : S = 0.
Step 2 : If (N ≤ –1 or 1 ≤ N), then S = S + 1 else go to step 5.
Step 3 : N = N ÷ 10
Step 4 : Go to step 2.
Step 5 : Print S.
Which of the following best describes the algorithm?