Is there any direct function to get number of folder/Files in a Folder?

I want the "contains" informations in the folder properties..