After such hearing the said judges shall, without delay, decide which of the candidates voted for received the greatest number of legal votes, and is entitled to the nomination or office, which decision shall be entered of record to the case in said court, and a certified copy thereof shall, within five (5) days from the rendering of such decision, be transmitted to the Secretary of the Commonwealth; whereupon the person who, by the said decision, shall appear to have received the largest number of votes, shall be entitled to the nomination, or to the office, and commissioned accordingly.
25 P.S. § 3379