PHPUnit_Framework_Assert::countOf

Returns a PHPUnit_Framework_Constraint_Count matcher object.