A square has four sides. Each side is equal in length and intersects at right angles with the adjacent sides. This characteristic of a square distinguishes it from other shapes, such as triangles or pentagons, which have a different number of sides. In a square, all angles are 90 degrees, and all sides are congruent, making it a regular quadrilateral. Therefore, the correct answer is 4.