The number of 10 digit numbers that can be written by using the digits 0 and 1 is
10C2+9C2
29
210−2
10!
For each place we have two choices: either use 0 or use 1.