How can I get number of players online?

Sorry to go a bit off-topic from the original post;

Does anyone know how to setup the bindings so that I can make a dynamic player list through this technique? I’ve been trying to create a player list of buttons; I can retrieve the actual list without difficulties, it’s just binding the buttons so it works dynamically that I’m having issues with.

Thanks in advance.