How many integer pairs $(m,n)$ are there satisfying the equation $4mn(m+n-1)=(m^2+1)(n^2+1)$? Provide your answer as an integer.

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