In how many different ways can seven different numbers be chosen from the numbers 1 to 9 inclusive so that the seven numbers have a total which is a multiple of 3?

This problem is taken from the UKMT Intermediate Mathematical Challenges.