title: get-wmiobject win32_physical memory count
body: <p>I am using the following script:</p>
  
  <pre><code>get-wmiobject -class win32_physicalmemory | select Name, Model, Speed, Capacity, DeviceLocator
  </code></pre>
  
  <p>and the output lists the 4 piece of memory, but what I want to do is count number of physical memory and <strong>then</strong> list the model, speed, capacity and device locator.</p>
  
  <p>I have tried using:</p>
  
  <pre><code>(get-wmiobject -class win32_physicalmemory | select Name, Model, Speed, Capacity, DeviceLocator).count
  </code></pre>
  
  <p>But this just returns 4, as opposed to 4 <em>and</em> the additional properties.</p>