@Override
    public void processDecodes(FacesContext context) {
        if (!isRendered()) {
            return;
        }

        pushComponentToEL(context, null);

        if (!shouldSkipChildren(context)) {
            if (isRepeating()) {
                process(context, PhaseId.APPLY_REQUEST_VALUES);
            }
            else {
                if (isDynamic()) {
                    for (int i = 0; i < getChildCount(); i++) {
                        UIComponent child = getChildren().get(i);
                        if (child instanceof Tab) {
                            Tab tab = (Tab) child;
                            if (tab.isLoaded()) {
                                tab.processDecodes(context);
                            }
                        }
                    }
                }
                else {
                    ComponentUtils.processDecodesOfFacetsAndChilds(this, context);
                }
            }
        }

        try {
            decode(context);
        }
        catch (RuntimeException e) {
            context.renderResponse();
            throw e;
        }
        finally {
            popComponentFromEL(context);
        }
    }
Calculates the count value for the given index.

@param index

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