The official website for The Settlers of Catan

Question about Base Game Resource Cards - May I count the Resource Cards in the supply stacks during play?

Answer

Yes, immediately after a production roll, before distributing the resources - but only if it isn't sure whether there will be enough cards for all players entitled to receive them.

Please look at these questions: