The value of such fence, and the proportion thereof to be paid by such person, and the proportion of the division fence to be made and maintained by him, in case of his inclosing his land, may be determined by 2 fence viewers of the town, in counties under township organization, and in other counties by any 2 fence viewers of the precinct; or, at the option of the aggrieved party, such value or proportion may be ascertained in an action brought by him before any court of competent jurisdiction.
765 ILCS 130/5