src/Asserts/Categories/AssertCountableTrait.php
public static function assertCount($countableElement, int $expected, Throwable $exception): bool
    {
        static::makeAssertion(\count($countableElement) === $expected, $exception);
        return true;
    }
public static function assertCount($countableElement, int $expected, Throwable $exception): bool
    {
        static::makeAssertion(\count($countableElement) === $expected, $exception);
        return true;
    }
public static function assertCount ( $ countableElement , int $ expected , Throwable $ exception ) : bool { static :: makeAssertion ( \ count ( $ countableElement ) === $ expected , $ exception ) ; return true ; }
Asserts that the given array contains the given number of elements.

@param array|\Countable $countableElement The array or the countable object to count its content.
@param int $expected The number of expected elements.
@param Throwable $exception The exception to throw if the assertion fails.
@return bool
Asserts that the given array contains the given number of elements .