Omnibus Election Code
Section 255. Judicial counting of votes in election contest. - Where allegations in a protest or counter-protest so warrant, or whenever in the opinion of the court the interests of justice so require, it shall immediately order the book of voters, ballot boxes and their keys, ballots and other documents used in the election be brought before it and that the ballots be examined and the votes recounted.