44 counties in Pennsylvania lost population over the past decade, with the hardest-hit areas in the northern and western parts of the state.