save cache count