Section 3. Public Defender; Establishment.--In each county except the County of Philadelphia, there shall be a public defender, appointed as herein provided. Two or more counties may cooperate in the appointment of a public defender, as provided in the intergovernmental cooperation provisions of the Constitution of Pennsylvania or as provided by law.