Returns the number of local variables used by the function (including arguments).
code.co_nlocals
#TODO
>>> def foo(a, b=10): ... c = 10 ... return a+b+c ... >>> c = foo.func_code >>> c.co_nlocals 3