Find the number of arithmetic sequences $a_1, a_2, a_3$ of three nonzero integers such that the sum of the terms in the sequence is equal to the product of the terms in the sequence.

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