Using tabCount instead of tabsContainer.getChildCount()