cache number of frames