deprecated getFrameCount, add getFrameLength