refactor github issue counter; fetch PR count too