Napoleon’s Pyramid

When Napoleon conquered Egypt in 1798 he went to the Great Pyramid of Giza. While his men climbed to its peak, he figured out that “There is stone enough to build a wall 3 meters high and 1/3 meter thick around the whole of France.” Was Napoleon right? How and why did he figure this out?