Given an equation
x^2+y^2+z^2=2010.
1. Prove that in every triplet of integers satisfying the above equation one number has to be even and two others odd.
2. How many integer solutions are there ?
Warning: 1 is very easy, 2 is quite tricky.