public int getLoopCount() {
        return header.loopCount;
    }
Gets the "Netscape" iteration count, if any. A count of 0 means repeat indefinitely.

@return iteration count if one was specified, else 1.
core/src/main/java/com/bumptech/glide/gifdecoder/GifDecoder.java