Fix RAM read/write count.