Add operation to get size of the memory.