public void forEachTab(BiConsumer<Tab, Integer> callback) {
        forEachTab(callback, true);
    }
Calculates the count value for the given index.

@param index

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