move FunctionExitCount to lizard_ext