I need help understanding what the following code does : <pre><code>while(u!=1)
{
    if(u%2==0)
    {
        u=u/2;
    }else{
    u=u*3+1;
    }
    count = count + 1;
}
</code></pre>

<p>Can someone explain to me what does this count? It seems pretty simple but I just can't figure it out.</p>
