int lua_gethookcount (lua_State *L);

Returns the current hook count.