Mr Ben needs to keep his 348 chickens in a square-shaped enclosure. If he needed 23 fence poles on each side of the square, how many poles were used?