Integers on a sphere

Can you find all the integer coordinates on a sphere of radius 3?

Problem



A sphere of radius 3 has its centre at the origin.

How many points on the surface of the sphere have coordinates that are all integers?

This problem is taken from the UKMT Mathematical Challenges.