Add nfds count for select()

Signed-off-by: PeteAU <pete@pibus.info>