How can I simplify that part of code?
<p>I have a code:</p>

<pre><code>    byte[][][] file = GetConfigData();

    if (file == null)
        return;

    int pages = 0;
    for (i = 0; i &lt; file.Length; i++)
    {   
        if (file[i] != null)
        {   
            for (j = 0; j &lt; file[i].Length; j++)
            {   
                if (file[i][j] != null)
                {
                    pages++;
                }
            }
        }
    }
</code></pre>

<p>How can I simplify it ?</p>

<p>Please, provide 2 versions:</p>

<ol>
<li>for .net 2.0</li>
<li>for .net 3.5 (linq)</li>
</ol>
