A goofy hack off the top of my head:
Code:
%find some_folder -type f -exec ls -i {} \; > my-output
%awk '{print $1}' my-output | sort | uniq | wc -l
The sort/uniq combo is there to squeeze out duplicated instances of hard links. There may be a more elegant solution than this.
