When the perimeter and area of a square are numerically equal, what is the numerical value of the measure of its side?