title: How to calculate how many intervals at given daterange? simpler version
body: <p>I can write:</p>
  
  <pre><code>select count(*) from generate_series( 
      '2019-03-01'::date, '2019-05-01'::date, 
      interval '3 day 1 hour' 
  ) 
  -- exclude upper boundary
  where generate_series &lt;&gt; date '2019-05-01'::date;
  </code></pre>
  
  <p>Is there a way to do it simpler? like:</p>
  
  <pre><code>daterange( '2019-03-01', '2019-05-01' ) / interval '3 day 1 hour'
  </code></pre>