print total number of resources as well