optimise backlinks counting for pagestats, simplify function returns again