How many proper irreducible fraction whose denominator is 1001?