The answer is 4, 64, 324, 1024.
Could you start with the amount of options there are for a square to be chosen? Would that matter?