I am trying to find a directory having highest number of files inside it. I am aware that I can find the number of files using:
find -maxdepth 5 -type f | wc -l
but this is only of use when I know which directory to check. I want to find that directory containing highest number of files.