Whenever it is necessary to erect a bridge on the boundary line between two counties, either to take the place of an intercounty bridge which has become insufficient for any cause to accommodate public travel or to provide a new bridge where none has previously been, such counties may jointly build or rebuild such bridge.
16 P.S. § 5801