You should UFCS from the start:
```D
    auto newValues3 = values
                      .filter!(a => a < 10)()
                      .tee!(a => count++)()
                      .map!(a => a + 1)()
                      .filter!(a => a < 10)();
```