It's the number of copies of that card there are in the deck.
What this guy said.
A card with 2 pips on it means that there are only 2 of those cards in the deck. Making them rare. The slave/fakirs have the number 18 meaning that there are 18 of those in the deck.
It helps you plan your moves if you are going for the set collection of resources.