To find the disk inode usage in a server, run the following command:
df -i
To calculate the disk inode usage by all users.
repquota -a
To find the number of files in a folder & subfolders, run the following command.
for d in *; do echo -n “$d: “; find $d -type f | wc -l; done