Daan distributes the numbers $1$ to $9$ over the nine squares of a $3\times 3$-table (each square receives exactly one number). Then, in each row, Daan circles the median number (the number that is neither the smallest nor the largest of the three). For example, if the numbers $8, 1$, and $2$ are in one row, he circles the number $2$. He does the same for each column and each of the two diagonals. If a number is already circled, he does not circle it again. He calls the result of this process a [i]median table[/i]. Above, you can see a median table that has $5$ circled numbers.
(a) What is the [b]smallest [/b] possible number of circled numbers in a median table?
[i] Prove that a smaller number is not possible and give an example in which a minimum number of numbers is circled.[/i]
(b) What is the [b]largest [/b] possible number of circled numbers in a median table?
[i]Prove that a larger number is not possible and give an example in which a maximum number of numbers is circled.[/i]

[asy]
unitsize (0.8 cm);

int i;

for (i = 0; i <= 3; ++i) {
  draw((0,i)--(3,i));
  draw((i,0)--(i,3));
}

draw(Circle((0.5,2.5),0.3));
draw(Circle((2.5,2.5),0.3));
draw(Circle((1.5,1.5),0.3));
draw(Circle((2.5,1.5),0.3));
draw(Circle((1.5,0.5),0.3));

label("$8$", (0.5,2.5));
label("$1$", (1.5,2.5));
label("$2$", (2.5,2.5));
label("$7$", (0.5,1.5));
label("$6$", (1.5,1.5));
label("$3$", (2.5,1.5));
label("$9$", (0.5,0.5));
label("$5$", (1.5,0.5));
label("$4$", (2.5,0.5));
[/asy]
### Part (a): Smallest Possible Number of Circled Numbers

1. **Understanding the Problem:**
   - We need to find the smallest number of circled numbers in a \(3 \times 3\) table where each row, column, and diagonal has its median circled.
   - A median in a set of three numbers is the number that is neither the smallest nor the largest.

2. **Counting the Medians:**
   - There are 3 rows, 3 columns, and 2 diagonals in a \(3 \times 3\) table.
   - Each row, column, and diagonal will have one median circled unless it has already been circled.

3. **Minimizing the Number of Circled Medians:**
   - To minimize the number of circled medians, we need to maximize the overlap of medians among rows, columns, and diagonals.
   - The center cell of the \(3 \times 3\) table is part of all rows, columns, and both diagonals. Thus, if the center cell is the median for all these lines, it will be circled only once.

4. **Constructing an Example:**
   - Place the numbers such that the center cell is the median for all rows, columns, and diagonals.
   - Example:
     \[
     \begin{array}{|c|c|c|}
     \hline
     1 & 9 & 2 \\
     \hline
     8 & 5 & 3 \\
     \hline
     4 & 7 & 6 \\
     \hline
     \end{array}
     \]
   - Here, the number 5 in the center is the median for the middle row, middle column, and both diagonals.

5. **Verification:**
   - Middle row: \(8, 5, 3\) (median is 5)
   - Middle column: \(9, 5, 7\) (median is 5)
   - Main diagonal: \(1, 5, 6\) (median is 5)
   - Anti-diagonal: \(2, 5, 4\) (median is 5)
   - Other rows and columns have their own medians, but they do not overlap with the center.

6. **Conclusion:**
   - The smallest possible number of circled numbers is \(1\).

### Part (b): Largest Possible Number of Circled Numbers

1. **Understanding the Problem:**
   - We need to find the largest number of circled numbers in a \(3 \times 3\) table where each row, column, and diagonal has its median circled.

2. **Maximizing the Number of Circled Medians:**
   - To maximize the number of circled medians, we need to minimize the overlap of medians among rows, columns, and diagonals.

3. **Constructing an Example:**
   - Place the numbers such that each row, column, and diagonal has a unique median.
   - Example:
     \[
     \begin{array}{|c|c|c|}
     \hline
     8 & 1 & 2 \\
     \hline
     7 & 6 & 3 \\
     \hline
     9 & 5 & 4 \\
     \hline
     \end{array}
     \]
   - Here, the medians are:
     - Rows: \(2, 6, 5\)
     - Columns: \(7, 6, 3\)
     - Diagonals: \(6, 5\)

4. **Verification:**
   - Top row: \(8, 1, 2\) (median is 2)
   - Middle row: \(7, 6, 3\) (median is 6)
   - Bottom row: \(9, 5, 4\) (median is 5)
   - Left column: \(8, 7, 9\) (median is 8)
   - Middle column: \(1, 6, 5\) (median is 6)
   - Right column: \(2, 3, 4\) (median is 3)
   - Main diagonal: \(8, 6, 4\) (median is 6)
   - Anti-diagonal: \(2, 6, 9\) (median is 6)
   - Note: The number 6 is circled multiple times, but it counts only once.

5. **Conclusion:**
   - The largest possible number of circled numbers is \(5\).

The final answer is \( \boxed{ 1 } \) for the smallest number and \(5\) for the largest number.