{@inheritdoc}

@param int $count

@return self
515876
public function pop($count = 1)
    {
        $newPath = $this->path->copy();
        for ($i = 0; $i < $count; ++$i) {
            $newPath->pop();
        }

        return $this->replicate(['path' => $newPath]);
    }
1316157
public function set_count($try, $count) {
        $this->totalcount = $this->totalcount + $count;
        $this->trycount[$try] = $count;
    }
967460
public function validateMinCheckboxesChecked($count)
    {
        $this->validator_attributes[] = 'data-parsley-mincheck="' . (int)$count . '"';

        $this->validator_checks['min_checkboxes_checked'] = (int)$count;

        return $this;
    }
956581
public function setNumPerPage($count)
    {
        if (!is_numeric($count)) {
            throw new InvalidArgumentException(
                'Number Per Page must be numeric.'
            );
        }

        $count = (int)$count;
        if ($count < 0) {
            throw new InvalidArgumentException(
                'Number Per Page must be greater than zero.'
            );
        }

        $this->numPerPage = $count;
        return $this;
    }
518650
public function removeFirstSegments($count) {
		$segments = new ArrayObject();
		for ($i = $count; $i < $this->segmentCount(); $i++) {
			$segments->push($this->segments[$i]);
		}
		return new Path($segments->join('/'));
	}
531474
public function count($count = null)
    {
        if ($count === null) {
            return isset($this->options['count']) ? $this->options['count'] : 0;
        } else {
            $this->options['count'] = $count;
            return $this;
        }
    }
432856
public function countIn($countIn, $error) {
        if ($this->_exist) {
            array_push($this->_constraints, ['type' => self::COUNTIN, 'value' => $countIn, 'message' => $error]);
        }

        return $this;
    }
126936
public function rewind($count)
    {
        $this->pos -= $count;
        if ($this->pos < 0) {
            $this->pos = 0;
        }

        return $this;
    }
57971
public function setRetries($count, $delay = 0)
    {
        assert(is_int($count) && $count >= 0);
        assert(is_int($delay) && $delay >= 0);
        $this->_retrycount = $count;
        $this->_retrydelay = $delay;

        return $this;
    }
463936
public function left ( $count = 0 ) {
        $this->_currentPosition = array(
                                        $this->_currentPosition[0] - $count,
                                        $this->_currentPosition[1],
                                       );
        return $this;
    }
48730
public function takeFirst(int $count)
    {
        return $this->wrap(function (Iterator $data) use ($count) {
            $first = true;

            while ($count-- && $data->valid()) {
                if (!$first) {
                    $data->next();
                }

                yield $data->key() => $data->current();
                $first = false;
            }
        });
    }
832347
private function createSessions($count)
    {
        $args = [
            'database' => $this->database->name(),
            'session' => [
                'labels' => isset($this->config['labels']) ? $this->config['labels'] : []
            ]
        ];

        $promises = [];

        for ($i = 0; $i < $count; $i++) {
            $promises[] = $this->database->connection()->createSessionAsync($args);
        }

        $results = Promise\settle($promises)->wait();

        $sessions = [];

        foreach ($results as $result) {
            if ($result['state'] === 'fulfilled') {
                $name = $result['value']->getName();
                $sessions[] = [
                    'name' => $name,
                    'expiration' => $this->time() + SessionPoolInterface::SESSION_EXPIRATION_SECONDS
                ];
            }
        }

        return $sessions;
    }
709928
public function setPluralForms($count, $rule)
    {
        if (preg_match('/[a-z]/i', str_replace('n', '', $rule))) {
            throw new \InvalidArgumentException('Invalid Plural form: ' . $rule);
        }
        $this->setHeader(self::HEADER_PLURAL, "nplurals={$count}; plural={$rule};");

        return $this;
    }
135090
public function from($values): self
    {
        if (!empty($values)) {
            $this->properties['from'] = collect($values)->map(function ($value) {
                return trim($value);
            })->all();
        }

        return $this;
    }
1208081
public function setRotationCount($count) 
	{
		$count = intval($count);
		if ($count != 0) {
			$count = $count % 4;
			$this->rotationCount = $count;
		}
		return $this;
	}
253703
public function setCountView($count_view) {
        if(!$this->setModified('count_view', $count_view)->isModified()) {
            return $this;
        }
		$this->count_view = $count_view;
		return $this;
    }
577949
public function qos($count, $size = 0)
    {
        try {
            $this->_channel->qos($size, $count);
        } catch (\Exception $e) {
            throw new AmqpException('set the Quality Of Service settings for the channel failed');
        }

        return $this;
    }