title: Neo4j / Cypher - Conditional counting in Return Statement
body: <p>Currently I got the following Cypher query:</p>
  <pre><code>MATCH (topic:TopicNode)-[r]-(article:ArticleNode)-[b]-&gt;(author:AuthorNode)
  MATCH (topic)-[v]-&gt;(source:SourceNode)
  WHERE  r.relevancy &gt; 0.002
  RETURN topic, count(DISTINCT article), count(DISTINCT author), count(DISTINCT source)
  </code></pre>
  <p>Which is working fine and delivers the expected results for each topic.</p>
  <p>Now I want to get the following additional information: the count of articles of each topic with a positive sentiment (e.g. <code>article.sentiment &gt; 0</code>) and negative sentiment.</p>
  <p>Is there a way to add conditional statements to a count operator?</p>
  <p>For example like this:</p>
  <pre><code>RETURN count(article.sentiment &gt; 0)
  </code></pre>
  <p>Because this did not seem to work for me.</p>