Counts all of the resources in your inventory.  It only counts the individual Food/Lumber/Stone/Ore boxes so if you want to count chests, you should open them first so that their contents are added to the individual boxes.


Once counted, see the  results under: 

Statistics > Reports > Detailed Resources 

and 

Statistics > Reports > Summary Resources