How many cubic polynomials of the form $x^3 - ax^2 + (a+d)x - (a+2d)$ have roots that are all non-negative integers, where $a$ and $d$ are integers?

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