Edit: "several thousand" could be in the order of millions! (i.e. billions of quadrillions of grains of sand.) Apparently the number of grains of sand per this planet is not so clear. At least to me.
A typical grain of sand contains in the order of hundreds of quadrillions of atoms. A deck of cards can be encoded in 226 bits per deck, so one could encode in the order of a quadrillion decks of cards in a single grain of sand!