How many numbers smaller than one million have digits in a non-decreasing order?
I tried doing it by finding numbers with strictly decreasing order, and subtracting them from $1000000.$
$$1000000-\left( {10 \choose 6}+{10 \choose 5}+{10 \choose 4}+{10 \choose 3}+{10 \choose 2}\right)$$
I'm choosing 6 unique digits out of 10 and put it in decreasing order (we can put every 6 numbers in decreasing order) and so on.
So I subtract the number of decreasing ordered numbers from one million.
Is it a good way of thinking?