Just counting the containers in the picture, it looks like there are 24 x 20 x 9 = 4320 containers. I guess below deck there could be another ~4000, but that still leaves another 4000? Can they stack them that much higher?
If I am counting correctly, you can see about 209 +2423*9 = 5148 containers.
Still, I am unable to see how 12000 containers would fit the ship.
Edit: I am correct, as you can see in this picture:
https://en.wikipedia.org/wiki/Algeciras-class_container_ship...