title: How to save number of functiton inserted in class callings in Python?
body: <p>How to save number of functiton <code>needed_function</code> callings?
  And its called by functions as <code>many_functions_that_calling_needed_function1</code> etc.
  I have following class schema:</p>
  <pre><code>class MyClass
      def __init__
  ...
      def my_function
      ...
      @staticmethod
      def needed_function
          if first_statement:
              &quot;&quot;&quot;Count number of calling if statement&quot;&quot;&quot;
          elif second statement:
              &quot;&quot;&quot;Count number of calling elif statement&quot;&quot;&quot;
  
      def many_functions_that_calling_needed_function1
          self.needed_function()
  
      def many_functions_that_calling_needed_function2
          self.needed_function()
  
      def many_functions_that_calling_needed_function3
          self.needed_function()
  
      def many_functions_that_calling_needed_function4
          self.needed_function()
  </code></pre>