Retrieves memory size