Update global.h

add out of memory count