Simplifier: `countValArgs` should not count Type args (#23102)
I observed miscompilations while working on !10088 (closed) caused by this.
Fixes #23102 (closed).
I observed miscompilations while working on !10088 (closed) caused by this.
Fixes #23102 (closed).