I believe it should be direct relative to the number of files and the Storage Size of files and your hardware/network to some extent.
1. If you have smaller files in size you can have them more, however if you want to search then it would create problem and traverse lot
2. If you have bigger files in size you should keep lesser number ideally as Network and IO cost would be more on any operations run that will lead to performance issues.