title: Count number of occurrences of a day between two dates SQL Server
body: <p>In SQL Server, how many 8 day periods do I have between this two dates?</p>
  
  <pre><code>@date1 = '2016/11/08'
  @date2 = '2017/02/10'
  </code></pre>
  
  <p>Manually I have four 8 day periods between those dates </p>