ulimit -n shows the max number of opened file per process, which is 1024 on my XUbuntu.

lsof -a -p <PID> shows the number of files opened by <PID>.

§Reference