title: degree by filtering on edge property
body: <p>In movie database, I want to find actors and count of movies they played in a time range. Currently I didn't integrate time range filtering I'm using the below query</p>
  
  <pre><code>MATCH (n:Person)-[r:ACTED_IN]-&gt;(:Movie)
  WITH n, r, SIZE( (n)-[:ACTED_IN]-&gt;(:Movie) ) as degree
  WHERE degree &gt; 3 
  RETURN DISTINCT ID(n) as id, n.name as Actor, degree as Count
  ORDER BY degree DESC SKIP 0 LIMIT 100
  </code></pre>
  
  <p>If I can do a query like </p>
  
  <pre><code>MATCH (n:Person)-[r:ACTED_IN]-&gt;(:Movie)
  WITH n, r, SIZE( (n)-[r2:ACTED_IN where r2.released &gt; 1990 and r2.released &lt; 2000 ]-&gt;(:Movie) ) as degree
  WHERE degree &gt; 3 
  RETURN DISTINCT ID(n) as id, n.name as Actor, degree as Count
  ORDER BY degree DESC SKIP 0 LIMIT 100
  </code></pre>
  
  <p>It would work. How can I do filtering on edge properties during degree calculation ?</p>