public void resetLoadedTabsState() {
        boolean repeating = isRepeating();
        forEachTab((tab, index) -> {
            if (repeating) {
                tab.setLoaded(index, false);
            }
            else {
                tab.setLoaded(false);
            }
        }, false);
    }
Calculates the count value for the given index.

@param index

@return
primefaces/src/main/java/org/primefaces/component/api/UITabPanel.java