count clients and add clientcount attribute to each node