CLOUD-39 set nodecount on stack