Node counting