Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Counts all elements in an array or in a Countable object
Alias sizeof
<?php count(Countable|array $value, int $mode = COUNT_NORMAL): int
<?php     exec("docker run --rm -v \${PWD}/helpers:/var/task/ --entrypoint php $layer -m", $output, $exitCode);

    $notLoaded = array_diff($devExtensions, $output);


    if ($exitCode !== 0 || count($notLoaded) > 0) {

        throw new Exception(implode(PHP_EOL, array_map(function ($extension) {

            return "Extension $extension is not loaded";

        }, $notLoaded)), $exitCode);
<?php     public function tick(string $message): void

    {

        $i = $this->counter % count(self::CHARACTERS);

        $symbol = self::CHARACTERS[$i];



        $this->clear();
<?php         $this->handleSqs(new SqsEvent($event), $context);



        if (count($this->failedRecords) === 0) {

            return;

        }
<?php         [, , $json] = explode("\t", $stdout);



        ['previous' => $previous] = json_decode($json, true);

        $this->assertCount(count($previousErrors), $previous);

        foreach ($previous as $index => $error) {

            $this->assertSame([

                'errorType',