title: Python - Count number of times function passes through decorator
body: <p>I have a decorator that I wanna make increase a counter anytime a function is routed through the decorator. So far this is my code</p>
  
  <pre><code>from functools import wraps
  def count_check(function):
      """Returns number of times any function with this decorator is called
      """
      count = []
      @wraps(function)
      def increase_count(*args, **kwargs):
          count.append(1)
          return function(*args, **kwargs), len(count)
  
      return increase_count
  </code></pre>
  
  <p>It works fine, until another function passes through the decorator and count resets to 0 for that function. How can I aggregate the total number of times?</p>