Retrograde Analysis Problem 8

Intermediate

ABCDE54321

On a 5x5 board, after five moves (no one of them a pass), how many positions exist where you can determine exactly what the last move (5) was? (Not knowing the order of moves, of course, but only seeing the position.) /Attempts