Actually given the little incident in Toulouse a couple of weeks back would this be the 5000th built, 4999th delivered?
It is supposed to be the 5000th delivered.
There would be many more than that built, each type right back to the A300 would have airframes built that were never delivered to an Operator, various test airframes etc.