Respect role when counting nb of registered nodes