use node crypto for random HEX generation
make countClients generic; refactor to use Object.keys to count members of supplied object