Well, they aren’t one-to-one functions, so each input has 7 possible outputs
The first input has 9 possible outputs
The second input has 9 possible outputs
…
The seventh input has 9 possible outputs
$ 9^7 $