title: Modifying a simple function to be self contained
body: <p>I know this question has a quick one line answer, but I can't wrap my head around how to make this arrow function self contained, using properties properly. It is just a function that counts how many times it has been called. Some help would be appreciated.</p>
  
  <pre><code>const countTimes = () =&gt; {
      countTimes.count = countTimes.count + 1;
      return countTimes.count;
  };
  countTimes.count = 0;
  </code></pre>