title: Cypher: loop over properties and count
body: <p>I have a lot of nodes, containing the property <code>gender</code>. Possible values for <code>gender</code> are: <em>male</em>, <em>female</em> and <em>andy</em>. I am looking for a cypher query, that will return the count of each value. For example...</p>
  
  <pre><code>"male"   100
  "female" 132
  "andy"   12
  </code></pre>
  
  <p>The solution should also work for nodes with a property with more than three cases, eg. names, and the number of persons with the name.</p>