What count does the program print after awaiting the combined task?

from Exceptions
C# 14 / .NET 10 advanced 2 min

What count does the program print after awaiting the combined task?

csharp
using System;
using System.IO;
using System.Threading.Tasks;

Task first = Task.FromException(new IOException("disk"));
Task second = Task.FromException(new InvalidOperationException("state"));
Task all = Task.WhenAll(first, second);

try
{
    await all;
}
catch (Exception)
{
    Console.WriteLine(all.Exception!.InnerExceptions.Count);
}
Open in playground
Report an error