Improved error handling get count

Modified: src/pointer-stack-io.c
General Improvements

Modified: src/pointer-stack-extended.c