prog 17.1
Manual Memory Counting