Determine Amount of Directories in a Directory
<p>How would one go about efficiently determining the amount of directories in a directory in PHP?</p>

<p>For example, lets say I have this as a structure:</p>

<pre><code>/Directory/ --&gt;
... /Directory 1/
... /Directory 2/
... /Directory 3/
... File.txt
... Filed2.txt
</code></pre>

<p>Would be great to know that their are 3 Directories, so as not to include the current or files themselves.</p>
