how many digits are there from 1 to 1000