docstr: Handler for call events.
  
  Adds (filename, modulename, funcname) to the self._calledfuncs dict.
docstr_tok: ["Handler","for","call","events",".","Adds","(","filename",",","modulename",",","funcname",")","to","the","self._calledfuncs","dict","."]
code: def globaltrace_countfuncs(self, frame, why, arg):
      """Handler for call events.
  
      Adds (filename, modulename, funcname) to the self._calledfuncs dict.
      """
      if why == "call":
          this_func = self.file_module_function_of(frame)
          self._calledfuncs[this_func] = 1
  
imports: import io
  import linecache
  import os
  import sys
  import sysconfig
  import token
  import tokenize
  import inspect
  import gc
  import dis
  import pickle
  from time import monotonic
  import threading
label_desc: Use image node_id 7 for calling the Trace obj's underlying member method code with example usage: obj.globaltrace_countfuncs(frame, why, arg) without return types