Find the number of solutions to the equation
\[\frac{1}{(7 - x)(1 + x)(1 - x)} + \frac{3x^2 - 18x - 22}{(x^2 - 1)(x - 7)} + \frac{3}{x - 2} = \frac{3}{(x - 1)(x - 2)}.\]

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