get number of frames