title: is there a way to track the number of times a function is called?
body: <p>So i'm trying to make a function that keeps track how many times a method is called.
  for example:</p>
  
  <pre><code>a = [1,2,3,4]
  a.pop()
  </code></pre>
  
  <p>i want to know how many times a.pop() was called so far so for this example, i would get 1.
  Is there a way to do this?</p>