addcount.cpp: call cleanup() before exit()
addcount.cpp: remove unused includes