Returns the number of widgets currently displayed (takes child splits
        into account).
775651
def count(self):
        
        c = self.main_tab_widget.count()
        for child in self.child_splitters:
            c += child.count()
        return c
1331186
public function get_children_count() {
        $sortedids = self::get_tree($this->id);
        $invisibleids = $this->get_not_visible_children_ids();
        return count($sortedids) - count($invisibleids);
    }
1096838
public int getMainImagesCount() {
    int count = 0;
    List<TiffObject> list = new ArrayList<>();
    list.addAll(getMetadataList("IFD"));
    list.addAll(getMetadataList("SubIFDs"));

    for (TiffObject to : list) {
      if (to instanceof IFD) {
        IFD ifd = (IFD) to;
        if (ifd.isImage() && !ifd.isThumbnail())
          count++;
      }
    }

    return count;
  }
968257
def widget n
      case n
      when Integer
        @form.widgets[n]
      when String, Symbol
        @form.by_name[n] 
      else
        raise "messagebox.widget can't handle #{n.class} "
      end
    end
995438
function() {
        for (var i = 0, count = 0;i< this.children.length;i++) {
            count += this.children[i].getNodeCount();
        }
        return count + 1;
    }
1193816
private int getDividerCount() {
        SharedPreferences sharedPreferences =
                PreferenceManager.getDefaultSharedPreferences(getActivity());
        String key = getString(R.string.divider_count_preference_key);
        String defaultValue = getString(R.string.divider_count_preference_default_value);
        return Integer.valueOf(sharedPreferences.getString(key, defaultValue));
    }
94848
public List<Widget> getAllViews() {
        List<Widget> views = new ArrayList<>();
        for (Widget child: mContent.getChildren()) {
            Widget item =  ((ListItemHostWidget) child).getGuest();
            if (item != null) {
                views.add(item);
            }
        }
        return views;
    }
1345687
public int getNumberOfLabelsUsed() {
        if (labels != null && !labels.isEmpty())
            return labels.size();
        else
            return ((Long) (maxCount + 1)).intValue();
    }
608079
def rowCount(self, parent):
        """"""
        if not parent.isValid():
            v = self._conf
        else:
            v = self.get_value(parent)
        if isinstance(v, Section):
            return len(v.keys())
        else:
            return 0
579494
def tabLayout(self):
        '''  '''
        self.childWindow.column += 1
        if self.childWindow.column > Layout.BUTTONS_NUMBER:
            self.childWindow.column = 0
            self.childWindow.row += 1
54650
@Override
    public int getTableRowCount() throws WidgetException {
        try {
            return getTableDataInArray().size();
        } catch (Exception e) {
            throw new WidgetException("Error while getting table row count", generateXPathLocator(), e);
        }
    }
114468
def column_count(self, ):
        
        if self.child_count():
            return self.childItems[0]._data.column_count()
        else:
            return self._data.column_count() if self._data else 0
694693
private ScoreWeight getDashboardScoreFromWidgets(List<ScoreWeight> widgetScores) {
    if (null == widgetScores) {
      return getDashboardScore(new ScoreTypeValue(Constants.ZERO_SCORE), widgetScores);
    }

    try {
      //Calculate score
      return getDashboardScore(
        ScoreCalculationUtils.calculateComponentScoreTypeValue(widgetScores, PropagateType.dashboard),
        widgetScores
      );
    } catch (PropagateScoreException ex) {
      ScoreWeight scoreDashboard = new ScoreWeight();
      scoreDashboard.setScore(ex.getScore());
      scoreDashboard.setMessage(ex.getMessage());
      scoreDashboard.setState(ex.getState());
      scoreDashboard.setChildren(widgetScores);
      return scoreDashboard;
    }
  }
1173410
@Override
    public int getTableColumnCount() throws WidgetException {
        try {
            return getTableHeaders().size();
        } catch (Exception e) {
            throw new WidgetException("Error while getting table headers", generateXPathLocator(), e);
        }
    }
1121609
def columnCount(self, parent):
        
        # print("columnCount:",self)
        if parent.isValid():
            return parent.internalPointer().columnCount()
        else:
            return self.root.columnCount()
88315
def columnCount(self, parent=QtCore.QModelIndex()):
        
        if parent.isValid():
            return self._stim.columnCount(parent.row())
        else:
            return self._stim.columnCount()
1137732
def refreshWidgets(self):
        
        if hasattr(self, '_widgets'):
            for w in self._widgets:
                w.refresh(isauto=0)
        else:
            raise RuntimeError("No widgets found")