How to count method calls ?

Aspect-oriented programming (AOP) is a way of adding extra functionality to your code without affecting its existing behavior (for example…