title: How to Get the number of weeks in a given year
body: <p>Trying to code a correct function that returns the number of weeks in a given year, but without success. </p>
  
  <p>Example of the function I'm looking for : </p>
  
  <pre><code>int weeks =  GetWeeksInYear ( 2012 )
  </code></pre>
  
  <p>should return 52 weeks // means there are only 52 weeks in 2012.</p>
  
  <p>P.s.: in a year can be 52, 53, 54 weeks, not sure about 51 </p>