def get_open_fds_count():
pid = os.getpid()<EOL>procs = check_output(["<STR_LIT>", '<STR_LIT>', '<STR_LIT>', "<STR_LIT>", str(pid)])<EOL>nprocs = len(<EOL>[s for s in procs.decode('<STR_LIT:utf-8>').split('<STR_LIT:\n>') if s and s[<NUM_LIT:0>] == '<STR_LIT:f>' and s[<NUM_LIT:1>:].isdigit()]<EOL>)<EOL>return nprocs<EOL>
Return the number of open file descriptors for current process

        .. warning: will only work on UNIX-like os-es.