Number of husbands.

@return string
490411
public function totalMarriedMales(): string
    {
        $n = (int) DB::table('families')
            ->where('f_file', '=', $this->tree->id())
            ->where('f_gedcom', 'LIKE', "%\n1 MARR%")
            ->distinct()
            ->count('f_husb');

        return I18N::number($n);
    }
455075
protected function getTotalRelevantRelationshipCount()
    {
        return count($this->getCombinedRelationships())
             + count( $this->data['relationships']['image'] )
             + count( $this->data['relationships']['file'] )
             + count( $this->data['relationships']['checkbox'] )
             + count( $this->data['relationships']['category'] );
    }
60653
public function getCount() {
		$options = $this->getOptions();
		$options['count'] = true;
		return (int) call_user_func($this->getter, $options);
	}
1288153
public function countWorkers()
    {
        $total = count($this->family);
        $busy = 0;
        $available = 0;
        foreach ($this->family as &$child) {
            switch ($child->status) {
                case ChildProcessContainer::STATUS_ALIVE:
                case ChildProcessContainer::STATUS_READY:
                    $available++;
                    break;
                case ChildProcessContainer::STATUS_BUSY:
                case ChildProcessContainer::STATUS_BUSY_BUT_SLEEPY:
                    $busy++;
                    break;
            }
        }
        return array($total, $available);
    }
1352785
public function count()
	{
		$count = 0;

		for ($index = 0, $length = strlen($this->data); $index < $length; $index++)
		{
			$count += self::$count[ord($this->data[$index])];
		}

		return $count;
	}
147887
public function getCount()
	{
		$data_source_sql_builder = $this->data_source->getSqlBuilder();

		try {
			$primary = $this->data_source->getPrimary();

		} catch (\LogicException $e) {
			if ($data_source_sql_builder->getGroup() !== '') {
				return $this->data_source->count(
					'DISTINCT ' . Strings::replace($data_source_sql_builder->getGroup(), '~ (DESC|ASC)~')
				);
			}

			return $this->data_source->count('*');
		}

		if ($data_source_sql_builder->getGroup() !== '') {
			return $this->data_source->count(
				'DISTINCT ' . Strings::replace($data_source_sql_builder->getGroup(), '~ (DESC|ASC)~')
			);
		} else {
			return $this->data_source->count(
				$this->data_source->getName() . '.' . (is_array($primary) ? reset($primary) : $primary)
			);
		}
	}
882666
public function count_messages()
    {
        if ($this->meta['messages'] !== null)
            return $this->meta['messages'];

        if (empty($this->raw_data)) {
            $this->meta['messages'] = 0;
        }
        else {
            $this->meta['messages'] = 1
                + substr_count($this->raw_data, self::SEPARATOR_ELEMENT)
                + substr_count($this->raw_data, self::SEPARATOR_ITEM);
        }

        if ($this->meta['messages'] == 0 || $this->meta['messages'] == 1)
            $this->meta['count'] = $this->meta['messages'];

        return $this->meta['messages'];
    }
761338
public function count() : int
    {
        return 12 * ($this->end->getYear() - $this->start->getYear())
            + ($this->end->getMonth() - $this->start->getMonth())
            + 1;
    }
1160148
public function getSex(){
		$result = null;
		if (isset($this->userInfo['sex'])) {
			$result = $this->userInfo['sex'] == 1 ? 'female' : 'male';
			}
		return $result;
		}
1246513
public function numPages()
    {
        if ($this->numPage) {
            $this->numPage;
        };

        $entries = $this->entries();
        $count = count($entries);

        if ($this->numPerPage()) {
            $this->numPage = ceil($count / $this->numPerPage());
        } else {
            $this->numPage = 1;
        }

        return $this->numPage;
    }
1096373
public function count()
    {
        if ($this->meta['count'] !== null)
            return $this->meta['count'];

        if (empty($this->raw_data)) {
            $this->meta['count'] = 0;
        }
        else {
            $this->meta['count'] = 1 + substr_count($this->raw_data, self::SEPARATOR_ELEMENT);
        }

        if (!$this->meta['count'])
            $this->meta['messages'] = 0;

        return $this->meta['count'];
    }
238854
public function getColumnCount()
    {
        $columnCount = 0;
        foreach ($this->_cells as $item) {
            if ($item->columns === 'auto') {
                continue;
            }
            $columnCount += $item->columns;
        }

        return $columnCount;
    }
926035
protected function GetRemainingRowCount()
    {
        $aTableList = $this->aTablesToProcess;
        $iCount = 0;
        foreach ($aTableList as $iWorkId) {
            $oIndexQuery = TdbShopSearchQuery::GetNewInstance();
            /** @var $oIndexQuery TdbShopSearchQuery */
            if ($oIndexQuery->Load($iWorkId)) {
                $iCount = $iCount + $oIndexQuery->NumberOfRecordsLeftToIndex();
            }
        }

        return $iCount;
    }
272378
public function count()
    {
        $_table_name = $this->_get_table_name();
        $_where = ($this->where != '') ? ' WHERE '. $this->where : '';
        $_field = $this->field;
        $_join  = $this->join;

        //清理使用过的变量
        $this->where = '';
        $this->field = '*';
        $this->join = '';

        $this->conn('slave');//连接从数据库
        $this->sql = 'SELECT count('. $_field .') AS count FROM '.$_table_name.$_join.$_where;
        return $this->db->fetch_object( $this->sql )->count;
    }
730743
public function count()
    {
        if ($this->cnt === null) {
            $this->cnt = $this->getDataSource()->count();
        }
        return $this->cnt;
    }
685659
public function count()
    {
        $oldFields = $this->fields;
        $this->fields = 'COUNT(*) as number';
        $number = $this->get();
        $number = $number[0]['number'];
        $this->fields = $oldFields;
        return $number;
    }
1101069
public function count() {
    if (isset($this->_href)) {
      $headers = Recurly_Base::_head($this->_href, $this->_client);
      if (isset($headers['x-records'])) {
        return intval($headers['x-records']);
      }
    } elseif (isset($this->_objects) && is_array($this->_objects)) {
      return count($this->_objects);
    }

    return null;
  }