This is a prime factoring combination problem
EDIT: SEE Electric Pavlov's reply below!!!!!!!!!!!
Prime factorize 10,000
that is 24 * 54
Notice how it is 2 * 2 * 2 * 2 * 5 * 5 * 5 * 5
Since there are 8 numbers, and you want 7 digits, there is only one way to eliminate.
It is now 10 * 2 * 2 * 2 * 5 * 5 * 5
There can only be one 10, three 2, three 5s.
So how many unique ways can we arrange these?
Lets do some case work
10 2 2 2 5 5 5
How many ways can you arrange (three 2s and three 5s)
+
2 10 2 2 5 5 5
How many ways can you arrange (one 10 two 2 and three 5s)
+
5 10 2 2 2 5 5
How many ways can you arrange (one 10 three 2 and two 5s)
After adding the number of cases together, you should get your answer. I will leave you to solve that.