Refactor memory_count from main.cpp to mem.cpp, since it was never referenced in main.cpp.
Authored by: david_costanzo 2010-05-29
Parent: [r3012]
Child: [r3014]