How many fraction numbers between $0$ and $1$ are there whose denominator is $1001$ when written in its simplest form?