Implemented naive gc count