@Background Pony #8E2C
The image count error was found during testing. I believe the conclusion was that Pupper wrote a script to correct the image count, though presumably it will have to wait until the import is caught up.
As for the tag changes on the deleted image: at this stage, the script is only supposed to be updating changes in tags and legacy scores. Tag changes are noted in tag history, hence why they show up. Those tags were not in the data dump that created that image, and were evidently added in when the tags were updated, evidently existing in the data dump. The image that you linked does not show the actual picture even to moderators. I attempted to manually restore the image, and received an error. I checked the Derpibooru counterpart, and that image was deleted for lack of relevance to mlp.
Because there is no picture there to see or restore, and because the image is marked as “missing or deleted images,” I think that the image was probably deleted on Derpibooru prior to the initial import, and that the image never had an actual uploaded picture on PonerPics; the tag update added previously missing metadata (the tags), and this image is the phantom 38th image counted as having the “blood raven” tag.
But what I haven’t conclusively disproven is that the image previously existed on PonerPics and the new script deleted it because its counterpart on Derpibooru was deleted between the time of the initial import and now. I do not think that that is the cause because the actual image should be present were it so. I’ll ask Pupper to look into that, but he’s a big busy now.