Contested nominations and elections of judges of courts of any judicial district of this Commonwealth shall be tried and determined before the court of common pleas of the county where the person returned as nominated or elected shall reside, in the following manner.
25 P.S. § 3376