Find the number of pairs of integers $x$ and $y$ such that $x^2 + xy + y^2 = 28$.
To find the number of pairs of integers \( (x, y) \) such that \( x^2 + xy + y^2 = 28 \), we start by analyzing the given equation.

1. **Rewrite the equation**:
   \[
   x^2 + xy + y^2 = 28
   \]

2. **Express \( x \) in terms of \( y \)**:
   \[
   x^2 + xy + y^2 - 28 = 0
   \]
   This is a quadratic equation in \( x \):
   \[
   x^2 + xy + (y^2 - 28) = 0
   \]
   Using the quadratic formula \( x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \) where \( a = 1 \), \( b = y \), and \( c = y^2 - 28 \):
   \[
   x = \frac{-y \pm \sqrt{y^2 - 4(y^2 - 28)}}{2}
   \]
   Simplify the discriminant:
   \[
   x = \frac{-y \pm \sqrt{y^2 - 4y^2 + 112}}{2}
   \]
   \[
   x = \frac{-y \pm \sqrt{-3y^2 + 112}}{2}
   \]
   For \( x \) to be an integer, the discriminant must be a perfect square:
   \[
   -3y^2 + 112 = k^2 \quad \text{for some integer } k
   \]

3. **Solve for \( y \)**:
   \[
   112 - 3y^2 = k^2
   \]
   Rearrange:
   \[
   112 - k^2 = 3y^2
   \]
   \[
   y^2 = \frac{112 - k^2}{3}
   \]
   For \( y^2 \) to be an integer, \( 112 - k^2 \) must be divisible by 3. Check possible values of \( k \) such that \( 112 - k^2 \) is non-negative and divisible by 3.

4. **Check possible values of \( k \)**:
   \[
   k^2 \equiv 1 \pmod{3} \quad \text{(since } 112 \equiv 1 \pmod{3})
   \]
   Possible values of \( k \) modulo 3 are \( k \equiv 1 \) or \( k \equiv 2 \).

   Check values of \( k \) from 0 to 10:
   \[
   k = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
   \]
   Only \( k = 4, 8 \) satisfy \( 112 - k^2 \) being divisible by 3.

5. **Find corresponding \( y \) values**:
   \[
   k = 4 \implies y^2 = \frac{112 - 16}{3} = \frac{96}{3} = 32 \quad (\text{not a perfect square})
   \]
   \[
   k = 8 \implies y^2 = \frac{112 - 64}{3} = \frac{48}{3} = 16 \quad (\text{perfect square})
   \]
   \[
   y = \pm 4
   \]

6. **Find corresponding \( x \) values**:
   For \( y = 4 \):
   \[
   x = \frac{-4 \pm \sqrt{112 - 3(4^2)}}{2} = \frac{-4 \pm \sqrt{112 - 48}}{2} = \frac{-4 \pm \sqrt{64}}{2} = \frac{-4 \pm 8}{2}
   \]
   \[
   x = 2 \quad \text{or} \quad x = -6
   \]

   For \( y = -4 \):
   \[
   x = \frac{4 \pm \sqrt{112 - 3(16)}}{2} = \frac{4 \pm \sqrt{64}}{2} = \frac{4 \pm 8}{2}
   \]
   \[
   x = 6 \quad \text{or} \quad x = -2
   \]

7. **List all pairs**:
   \[
   (2, 4), (-6, 4), (6, -4), (-2, -4)
   \]

Conclusion:
The number of pairs of integers \( (x, y) \) that satisfy the equation is \( \boxed{4} \).