make permalink anchors unique by appending a count