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

        if (shouldSkipChildren(context)) {
            return;
        }

        pushComponentToEL(context, null);

        if (isRepeating()) {
            process(context, PhaseId.UPDATE_MODEL_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.processUpdates(context);
                        }
                    }
                }
            }
            else {
                ComponentUtils.processUpdatesOfFacetsAndChilds(this, context);
            }
        }

        if (context.getRenderResponse()) {
            _isValidChilds = false;
        }

        popComponentFromEL(context);
    }
Calculates the count value for the given index.

@param index

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