Basic usage
Input
@count_calls\ndef add(a, b):\n return a + b\n\nadd(1, 2)\nadd(3, 4)\n(add.call_count, add(5,6), add.call_count)
Output
(2, 11, 3)
After two calls add.call_count is 2. Calling add(5,6) returns 11 and increases call_count to 3. The final tuple shows the count before the last call, the return value, and the new count.