Find the number of pairs \((m,n)\) of integers with \(-2014 \le m,n \le 2014\) such that \(x^3+y^3 = m + 3nxy\) has infinitely many integer solutions \((x,y)\).

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