Get the count of source fields (From the selection).
@return The count.
341869
public int getSourceFieldCount()
    {
        int iCount = 0;
        for (int i = 0; i < this.getSFieldCount(); i++)
        {
            ScreenField sField = this.getSField(i);
            if (!(sField instanceof BasePanel))
                iCount++;
        }
        return iCount;
    }
213035
public long count() throws Exception {
		final String id = new AbstractID().toString();

		output(new Utils.CountHelper<T>(id)).name("count()");

		JobExecutionResult res = getExecutionEnvironment().execute();
		return res.<Long> getAccumulatorResult(id);
	}
314819
public int getEventSetCount()
    {
        int count = _eventSets.size();
        if (_superClass != null)
            count += _superClass.getEventSetCount();

        return count;
    }
1083783
@Override
	public BigInteger getCount() {
		BigInteger cached = cachedCount;
		if(cached == null) {
			cachedCount = cached = getCountImpl();
		}
		return cached;
	}
739381
public int count() {
		Integer result = null;
		if (result == null) {
			SimpleQuery q = this.isKeysOnly()? this : this.clone().keysOnly();
			result = getDatastoreService().prepare(q.getQuery()).countEntities(fetchOptions);
		}
		return result;
	}
742202
public int getPropertyCount()
    {
        int count;
        if (_superClass == null)
            count = 0;
        else
            count = _superClass.getPropertyCount();

        for (AptPropertySet propertySet : _propertySets) {
            // if a property set is set to optional and hasSetters is set to false,
            // there isn't a getter or setter available for that property
            if (propertySet.hasSetters() || !propertySet.isOptional()) {
                count += propertySet.getProperties().size();
            }
        }

        count += _intfProps.size();
        return count;
    }
1279195
public int getCount(T style)
    {
        Integer cnt = styles.get(style);
        return cnt == null ? 0 : cnt;
    }
1161714
protected int getSortFieldIndex() {
        SortParam sp = getSort();
        Integer index = fieldNameToIndex.get(sp.getProperty());
        if (index == null) {
            index = 1;
        }
        return index;
    }
1162754
public long getMenuResultsCount() {
        if (knownType != Message.KnownType.MENU_AVAILABLE) {
            throw new IllegalArgumentException("getMenuResultsCount() can only be used with MENU_AVAILABLE responses.");
        }
        final NumberField count = (NumberField)arguments.get(1);
        return count.getValue();
    }
862088
@Override
  public int count() {

    int listSize = getList().size();
    int pageSize = getPageSize();
    int pageCount = listSize / pageSize;

    pageCount += listSize % pageSize > 0 ? 1 : 0;

    return pageCount;
  }
354611
public function count()
    {
        if ($this->count === null) {
            if ($this->dataSource instanceof \Countable) {
                $this->count = $this->dataSource->count();
            } elseif (is_array($this->dataSource)) {
                $this->count = count($this->dataSource);
            } else {
                throw new Exception\RuntimeException(sprintf(
                    'DataSource with type "%s" cannot be counted',
                    gettype($this->dataSource)
                ));
            }
        }
        return $this->count;
    }
730743
public function count()
    {
        if ($this->cnt === null) {
            $this->cnt = $this->getDataSource()->count();
        }
        return $this->cnt;
    }
1164136
protected String getCountQuery() {
    
    if(dbConf.getInputCountQuery() != null) {
      return dbConf.getInputCountQuery();
    }
    
    StringBuilder query = new StringBuilder();
    query.append("SELECT COUNT(*) FROM " + tableName);

    if (conditions != null && conditions.length() > 0)
      query.append(" WHERE " + conditions);
    return query.toString();
  }
1018619
String getSQLForSelectCount() {

        final DBTable dbTable = mModelClazz.getAnnotation(DBTable.class);
        final String dbTableName = dbTable.tableName();
        final List<DBColumn> primaryKeyList = getPrimaryKeyColumnList();
        final String preparedSql;
        if (primaryKeyList.size() > 0) {
            final DBColumn primaryKey = primaryKeyList.get(0);
            final String primaryKeyColumnName = primaryKey.columnName();

            preparedSql = "SELECT COUNT(" + primaryKeyColumnName + ") FROM " + dbTableName;
        } else {
            preparedSql = "SELECT COUNT(" + "*" + ") FROM " + dbTableName;
        }

        return preparedSql;
    }
64755
public int size() {
		int size = 0;
		for (SourceFolder sourceFolder : this.sourceFolders.values()) {
			size += sourceFolder.getFiles().size();
		}
		return size;
	}
249136
public Long getCount() {
        if (count == 0L || !suppressCounts) {
            if (metaModel.cached()) {
                count = (Long) QueryCache.instance().getItem(metaModel.getTableName(), countQueryFull, params);
                if (count == null || count == 0) {
                    count = doCount();
                    QueryCache.instance().addItem(metaModel.getTableName(), countQueryFull, params, count);
                }else {
                    LogFilter.logQuery(LOGGER, countQueryFull, params, System.currentTimeMillis(), true);
                }
            } else {
                count = doCount();
            }
            return count;

        } else {
            return count;
        }
    }
552623
public boolean isAllSelected()
    {
        boolean bAllSelected = true;
        for (int iFieldSeq = DBConstants.MAIN_FIELD; iFieldSeq <= this.getFieldCount() + DBConstants.MAIN_FIELD - 1; iFieldSeq++)
        {
            if(this.getField(iFieldSeq).isSelected() == false)
                bAllSelected = false;
        }
        return bAllSelected;
    }