Max no of files in a directory



I want to find out the max number of files possible in a directory. Is
doesn't seem to be the number in /proc/sys/fs/file-max coz I've been
able to create files far greater than that.
.