count nodes instead of printing them