```csharp
var connecting = connections.Count(c => c.State == ConnectionState.Connecting);
```

For all