Given a positive integer $n (n>2004)$, we put 1, 2, 3, …,$n^2$ into squares of an $n\times n$ chessboard with one number in a square. A square is called a “good square” if the square satisfies following conditions:
1) There are at least 2004 squares that are in the same row with the square such that any number within these 2004 squares is less than the number within the square.
2) There are at least 2004 squares that are in the same column with the square such that any number within these 2004 squares is less than the number within the square.
Find the maximum value of the number of the “good square”.
1. **Define the problem and the conditions for a "good square":**
   - A square is called a "good square" if:
     1. There are at least 2004 squares in the same row with numbers less than the number in the square.
     2. There are at least 2004 squares in the same column with numbers less than the number in the square.

2. **Determine the number of "row-good squares":**
   - A "row-good square" is a square where its number is greater than at least 2004 numbers in the same row.
   - In each row, the smallest 2004 numbers do not belong to "row-good squares".
   - Therefore, each row has \( n - 2004 \) "row-good squares".

3. **Determine the number of "column-good squares":**
   - Similarly, a "column-good square" is a square where its number is greater than at least 2004 numbers in the same column.
   - In each column, the smallest 2004 numbers do not belong to "column-good squares".
   - Therefore, each column has \( n - 2004 \) "column-good squares".

4. **Combine the conditions for a "good square":**
   - A "good square" must be both a "row-good square" and a "column-good square".
   - Therefore, the maximum number of "good squares" is the product of the number of "row-good squares" and the number of "column-good squares".

5. **Calculate the maximum number of "good squares":**
   - The total number of "good squares" is \( (n - 2004) \times (n - 2004) \).

6. **Verify the construction of the chessboard:**
   - Label squares such that each row and each column has exactly 2004 labeled squares.
   - Place the numbers \( 1, 2, \ldots, 2004n \) in the labeled squares.
   - Place the remaining numbers in the unlabeled squares.
   - Since the numbers in the unlabeled squares are greater than those in the labeled squares, all unlabeled squares are "good squares".

7. **Calculate the number of unlabeled squares:**
   - The total number of squares is \( n^2 \).
   - The number of labeled squares is \( 2004n \).
   - Therefore, the number of unlabeled squares (which are "good squares") is \( n^2 - 2004n \).

The final answer is \( \boxed{ n^2 - 2004n } \).