Given a grid, find the number of ways of placing 5 counters in the squares, so that each row and each column contains exactly one counter. One possible way is shown below.