Each unit square of the 4x4 grid below is to be filled in with the number 1, 2, 3 or 4, so that:
All the numbers in each row add up to 10
All the numbers in each column add up to 10.
In how many ways can this be done?