It seems like MODEL_FRAMES in the method that should return that information (based on its usage in the server code) but I've used it on some sprites and it returns some massive number (>1 billion I think).
Is there a way to do this? Without opening the sprite and parsing it myself?