Pedro must choose two irreducible fractions, each with a positive numerator and denominator, such that:

1. The sum of the fractions is equal to $2$.
2. The sum of the numerators of the fractions is equal to $1000$.

In how many ways can Pedro do this?

Let's think step by step and output the final answer within \boxed{}.
user