Cómo contar la derrota en ruta.php laravel

return collect(Route::getRoutes())
    ->reject(function ($item) {
        return starts_with($item->uri, 'horizon');
    })
    ->reject(function ($item) {
        return starts_with($item->uri, 'nova');
    })
    ->reject(function ($item) {
        return starts_with($item->uri, '__clockwork');
    })
    ->reject(function ($item) {
        return starts_with($item->uri, 'themsaid');
    })
    ->pluck('uri')
    ->count();
Mohamad