Only count files, not folders

r? @sole? Maybe we should only count the number of files in the root dir, and leave folders alone for now?