Thanx a lot for all and espesially for belg4mit!
The simple solution for my question is: create internal counter in my module and increment/decrement it when this module open/close sockets; allow user update this counter if user need more than, say, 100 FD's.