Search for folders with a defined amount of subfolders/files

You can't rely on that since it won't always be there.

You would want to count the folder contents yourself. But don't worry, Opus provides some helpers which make this trivial. Example here.