If the first number is not allowed to be "0", we will have that the aviable numbers will be:
So, we will have 9 posibilites, now:
First, we will have that the biggest number of 7 digits that we will be able to write will be 9 999 999 and the smallest is 1 000 000.
Now, we will have that the total number of aviable values is:
Then, the total number of possible is: